Honduras president-elect Xiomara Castro is due to be sworn in as the country's first woman president on Thursday, as confusion reigns over who will be head of congress during her four-year term.

Two rival factions in Castro's left-wing Libre party have voted in their own president of congress and negotiations to reach a solution stalled overnight on Wednesday.

Luis Redondo, who has the support of Castro and much of her party, has been invited to preside over her inauguration.

However, rebel deputy Jorge Calix, bolstered by the right-wing opposition National and Liberal parties, has the support of more than 70 of the 128-member congress, including close to 20 Libre deputies.

Castro made a last-ditch attempt to resolve the dispute on Wednesday night by offering Calix the job of Cabinet Coordinator -- a similar role to chief of staff -- in her government, in a bid to convince him to drop his claim to the congress president role.

Calix sparked hope of a breakthrough by replying to Castro with: "You will soon receive my answer."

The congress dispute is an embarrassing distraction for the president-elect, with US Vice President Kamala Harris, King Felipe VI of Spain and Taiwan Vice President William Lai due to attend the inauguration.

Once she assumes office, Castro, 62, will inherit "a country in a deep crisis -- above all a social crisis -- whose despair, whose deterioration of living conditions have become so profound," Eugenio Sosa, a sociologist at the National University of Honduras, told AFP.

The "main reflection" of the crisis, he added, "is in the massive exodus of families to the United States."

But before tackling those challenges, Castro must first resolve the congress dispute.

The schism emerged last Friday when a group of Libre dissidents ignored an agreement with the Savior Party of Honduras (PSH), whose support was key to Castro winning the November elections.

PSH leader Salvador Nasralla agreed to withdraw from the presidential race in return for the position of vice president and a pledge to support the PSH's Redondo as president of congress.

But dissidents refused, arguing that congress should be led by the party with the most members -- Libre has 50 deputies, to just 10 for the Savior party.

Xiomara Castro was elected as Honduras' president in November polls
Xiomara Castro was elected as Honduras' president in November polls AFP / Orlando SIERRA

The dispute turned nasty, with some deputies coming to blows.

Castro accuses the dissidents of allying with the National Party of outgoing president Juan Orlando Hernandez to prevent the changes she promised in her campaign, including the restitution of laws against impunity that were rolled back by the previous administration.

During her visit, US vice president Harris is due to hold talks with Castro on the root causes of Central American migration toward the United States, a senior US official said.

"The topics will include expanding economic opportunity, combating corruption, and humanely managing migration," the official added.

Some 71 percent of the close to 10 million Hondurans live in poverty, according to the FOSDEH NGO.

"Everyone wants to leave because there's no work. If there were more work opportunities here, there would be no need to look for another country," university student Jensi Davila told AFP in central Tegucigalpa.

Honduras is also wracked by violence instigated by criminal gangs involved in drug trafficking. The murder rate is close to 40 per 100,000 inhabitants.

Lai is due to hold separate talks with Castro and Belize Prime Minister John Briceno during his visit.

Taiwan's foreign ministry said Lai's meeting with Castro would be "to exchange views on issues of mutual concern."

Honduras is among just 14 countries that still recognise democratic, self-ruled Taiwan.

China, which considers Taiwan as its own, has spent decades successfully encouraging the island nation's allies to switch sides.

During her election campaign, Castro vowed to "immediately open diplomatic and commercial relations with mainland China" if she won.