Honduras is on the verge of ending a four-month political crisis after rival camps cut a deal that could return ousted President Manuel Zelaya to power and earn international support for a November 29 election.

Buckling under pressure from US diplomats, negotiators for Mr Zelaya, toppled in a June 28 coup, and the de facto leader Roberto Micheletti who replaced him, agreed to put an end to Central America's worst political turmoil in two decades.

The deal, a diplomatic victory for US President Barack Obama, leaves it up to the Honduran Congress to decide whether Mr Zelaya can be restored to serve the last few months of his term - the question that caused earlier talks to stumble.

A Congress vote is expected in the next few days, after the Supreme Court gives a non-binding opinion on the matter.

"We've taken a first step," Mr Zelaya said yesterday as negotiators put final signatures to the agreement, which will end months of isolation for the poor coffee-production nation.

The breakthrough late on Thursday came after a high-level US delegation flew to Tegucigalpa for a last-ditch effort to end a crisis that created a foreign policy headache for Mr Obama as he seeks better relations with the region.

"Both sides in regard to the issue of restitution, have committed this decision to Congress," US Assistant Secretary of State for Western Hemisphere Affairs Tom Shannon said.

"Both have indicated that they will abide by it, and I believe them," he told reporters. "This is a political issue that's going to be resolved politically."

Mr Zelaya, a leftist logging magnate, was rousted at dawn by soldiers and flown to exile on a Supreme Court order, after he irked many in Honduras by cozying up to socialist Venezuelan President Hugo Chavez and allegedly seeking support to allow presidential re-election, something he denies.

Mr Zelaya called the accord a "triumph" for democracy and said he did not expect any new setbacks. "My reinstate-ment is imminent, I'm optimistic," he told Reuters late on Thursday.

In Islamabad, US Secretary of State Hillary Clinton, who sent the US delegation this week, praised the deal, calling it "a big step forward" for democracy in the Americas.

"Diplomatically, the US came out as the biggest winner of the agreement," noted Eurasia analyst Heather Berkman.

The United States, the European Union and Latin American leaders had all insisted Zelaya be allowed to finish his term and threatened not to recognise the winner of the November election unless democracy was first restored.

Under US pressure, Mr Micheletti finally softened and said Mr Zelaya could return if Congress agrees. The deal requires both sides to recognise the result of the upcoming election and would transfer control of the army to the top electoral court.

"I have authorised my negotiating team to sign a deal that marks the beginning of the end of the country's political situation," Mr Micheletti said on Thursday night.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.