Venezuela has backed down from its demand that US diplomats leave the country, saying it’s open to talks — as the Trump administration warned of a “significant response” if American personnel are threatened or intimidated.

The country’s foreign ministry issued a statement saying that far-left President Nicolas Maduro was suspending the expulsion of US diplomats, to allow a 30-day window to negotiate with American officials.

The embattled second-term leader cut ties with the US on Wednesday after the Trump administration recognized opposition leader Juan Guaidó as Venezuela’s interim president, a move Maduro blasted as an attempted coup. He gave US diplomats three days to leave the county — but the Trump administration said it wouldn’t obey.

Venezuela’s last-minute Saturday night decision to pull the expulsion order may have avoided a potential showdown with the US. Still, US national security adviser John Bolton cautioned that any threat on a US diplomat or Guaidó would yield a forceful reaction.

“Any violence and intimidation against U.S. diplomatic personnel, Venezuela’s democratic leader, Juan Guaido, or the National Assembly itself would represent a grave assault on the rule of law and will be met with a significant response,” Bolton tweeted Sunday.

Acting White House chief of staff Mick Mulvaney on Sunday refused to rule out US military action to address the unrest in Venezuela, where violent anti-government protests have broken out.

“I don’t think any president of any party who is doing his or her job would be doing the job properly if they took anything off the table,” Mulvaney said on “Fox News Sunday.”

Meanwhile, Maduro struck down calls from European countries to hold early elections within eight days. France, Germany and Spain threatened to follow the US in recognizing Guaidó as the true leader. Russia has called the ultimatum “absurd” and Turkey said it supports Maduro.

In an interview with CNN that aired Sunday, Maduro said he was open to a dialogue with the US but that it was improbable — though not impossible — that he might meet Trump.

Venezuela has sunk into a crushing economic crisis under Maduro’s policies, with widespread food and medical shortages that have forced millions of people to starve or flee.

With Post wires