As the nail-biting election extended into early Wednesday, the rest of the world was contemplating the reality of President Donald Trump in the White House.

Before Hillary Clinton conceded the race, a senior member of German Chancellor Angela Merkel's government said the geopolitical situation was "very uncertain."

"We're realizing now that we have no idea what this American president will do if the voice of anger enters office and the voice of anger becomes the most powerful man in the world," Norbert Roettgen, a member of Merkel's Christian Democratic Union (CDU) and head of the German parliament's foreign affairs committee, said on Deutschlandfunk radio.

Merkel herself officer this prepared statement:

"Germany and America are bound by their values: democracy, freedom, the respect for the law and the dignity of human beings, independent of their origin, skin color, religion, gender, sexual orientation or political position," she added. "On the basis of these values I offer the future president of the United States, Donald Trump, close cooperation."

French Ambassador to the U.S. Gerard Araud foretold of a new world order. "After Brexit and this election, everything from now on is possible," Araud tweeted. "A world is collapsing before our eyes. Vertigo."

"It's the end of an era, that of neoliberalism. What will succeed it, is yet to be known," Araud said in another tweet. Both tweets were later deleted.

More: Protesters take to Portland streets

More: The Elite got it wrong. Trump fans want you to know why

Chinese state media outlets cast the result as a sign of America's democracy in crisis in contrast to China's perceived stability under authoritarian rule.

The state-run Xinhua News Agency said the campaign highlighted that, in its words, "the majority of Americans are rebelling against the U.S.'s political class and financial elites."

The official Communist Party newspaper People's Daily said in a commentary that the 2016 race revealed an "ill democracy."

Like Russia, China is seen as favoring Trump because he appears less willing to confront China's newly robust foreign policy, particularly in the South China Sea. Clinton, by contrast, is disliked in Beijing for having steered the U.S. "pivot" to Asia aimed at strengthening U.S. engagement with the region, particularly in the military sphere.

Japanese Prime Minister Shinzo Abe was watching the "closer than expected" race in his office, his aide Tateo Kawamura told the Kyodo News service.

The Japanese government has remained neutral in public statements, but analysts on both sides of the Pacific have talked about a possible change in U.S. policy toward Japan and the rest of Asia under a Trump presidency.

Chief Cabinet Secretary Yoshihide Suga has pledged the Japan-U.S. alliance will remain the cornerstone of Japan-U.S. diplomacy.

Argentina's Foreign Minister Susana Malcorra said a Trump win would stall recent moves to improve relations between the countries.

She also predicted the "more closed, isolationist and xenophobic" model represented by the Republican candidate would have a major impact on the world and relations with Latin America.

In Russia, where the government has been accused by U.S. intelligence officials of trying to meddle in the election through cyber-mischief, Muscovite Alexei Anatsky, who works in the IT industry, said "real life is turning out far less funny than it seemed a while ago. We had an idea of how people think in New York and San Francisco. Now we are seeing how more than half of the country thinks."

Global markets expressed shock at Trump's win. Dow stock futures on Wall Street plunged more than 4% before recovering. In Tokyo, the Nikkei index nosedived 5.4%, its largest drop in years. European shares also plummeted.

The Mexican peso started plunging as soon as it became clear that Trump had won the key battleground states of Florida, Ohio and North Carolina — indicators of his eventual victory. Mexico's central bank had called a Trump win a possible “hurricane” for the peso and created a contingency plan to respond.

Owen Smith, a British politician who lost to Jeremy Corbyn to lead the opposition Labour Party, said Trump's triumph means there would be a "racist in the White House and a human rights abuser in the Kremlin," where Russian President Vladimir Putin has his office.

Not all foreign observers were hanging their heads following one of the most caustic presidential elections in U.S. history.

"We regard with satisfaction that the better candidate of the two presented to the American voters was victorious," said Vladimir Zhirinovsk, the leader of Russia’s nationalist Liberal Democratic party. Russia's parliament broke into applause when the result was announced. Putin sent Trump a telegram of congratulation.

In France, Marine Le Pen, who leads the far-right National Front party, tweeted her congratulations before Trump had even been declared the winner. Geert Wilders, a fellow anti-immigration politician in the Netherlands, declared that Americans were "taking their country back."