Iran's supreme leader has mocked the rancorous aftermath of election day in the United States, saying that the vote has exposed the reality of US democracy.

Well over 24 hours after the last polling stations closed in the US state of Alaska, the battle for the White House remains undecided.

US President Donald Trump has caused disquiet among even leaders of his own Republican Party by flatly alleging fraud, while his Democratic challenger Joe Biden's campaign team has accused the incumbent of seeking to deny the electoral rights of tens of thousands of postal voters.

"What a spectacle!" supreme leader Ayatollah Ali Khamenei tweeted late Wednesday.

"One says this is the most fraudulent election in US history. Who says that? The president who is currently in office.

Iran has publicly insisted it has no favourite in the US presidential election despite the stark differences between the candidates in their policy towards Tehran
Iran has publicly insisted it has no favourite in the US presidential election despite the stark differences between the candidates in their policy towards Tehran KHAMENEI.IR / -

"His rival says Trump intends to rig the election! This is how #USElections & US democracy are."

The deepening polarisation of US politics since Trump's surprise election victory four years ago has drawn expressions of concern even from Western allies, with Germany warning of a "very explosive situation" in the aftermath of the poll.

Despite US allegations that Tehran sought to use social media to influence voters in the run-up to polling day, Iran's leadership has publicly insisted it favours neither candidate, despite their sharply divergent policies towards Tehran.

Trump has led a campaign of "maximum pressure" against the Islamic republic, pulling Washington out of a multilateral deal on Iran's nuclear programme and reimposing crippling unilateral sanctions.

Biden has signalled he is ready to rejoin the landmark nuclear agreement struck in 2015 when he served as vice president under Trump's predecessor Barack Obama.

But on Tuesday, Khamenei insisted the outcome of the election would have no impact on Iranian policy.