Mitch McConnell said Thursday that President Trump would sign the bipartisan border security bill — and then declare a national emergency to find the money for his long-promised border wall that Congress wouldn’t give him.

“I’ve just had an opportunity to speak with President Trump. I would say to all my colleagues he has indicated he is prepared to sign the bill. He will also be issuing a national emergency declaration at the same time,” the majority leader declared from the Senate floor.

His statement came as Congress was poised to pass a bipartisan compromise border security bill Thursday evening to avert another government shutdown, and Trump was expected to sign it, according to allies.

But Trump himself kept the nation in suspense, saying Thursday afternoon that he and his aides were still eyeballing the bill.

“Reviewing the funding bill with my team at the @whitehouse!” the commander-in-chief tweeted.

The bill would provide almost $1.4 billion for 55 miles of additional border fencing identical to that already in place, far less than the $5.7 billion Trump had demanded before the 35-day government shutdown that began in December.

The Democrat-controlled House was poised to pass the sweeping measure Thursday evening, and the Republican-led Senate was expected to approve it as well.

Passage was virtually certain, with sizable numbers of both parties’ members set to vote “yes.”

The only remaining suspense was whether Trump, despite clear signals from allies that he would play ball, might reject the package and sew fresh chaos into the issue.

“Let’s all pray that the president will have wisdom to sign the bill so the government doesn’t shut down,” said Iowa GOP Sen. Charles Grassley, after a guest chaplain opened Thursday’s session.

South Carolina GOP Sen. Lindsey Graham, a onetime Trump critic-turned-loyal ally, told reporters Trump was “certainly inclined to sign it” and “march toward filling in gaps” by using executive action to divert other budget funds into wall-building.

Trump has also said he could declare what he calls “the crisis” at the southern border and try to find the money elsewhere in the massive federal budget.

Democrats flatly reject the president’s description of the situation at the border, arguing that more humanitarian aid is needed and that points of entry need to be hardened.