Kyrgyzstans president has offered to resign to end a constitutional crisis in the central asian country that regional power russia warned had descended into chaos.

Sooronbai jeenbekovs hold on power has been in doubt since opposition groups this week claimed to have seized control of key ministries and security agencies and declared his position illegitimate.

The oppositions move followed mass protests against the results of sundays parliamentary election that observers said was rigged.

I am ready to resign from the presidency as soon as the current situation is brought to a legal basis, all government agencies and the government are given authority, and the country is on the right path, mr jeenbekov said in a statement on friday.

The unrest has unsettled moscow, which is acutely sensitive to popular protests and political turmoil in post-soviet states within its sphere of influence. in kyrgyzstan, which borders china, two presidents have been toppled by popular revolts since 2005.

While kyrgyzstans cabinet resigned this week and the countrys election authorities annulled the results of sundays poll, opposition factions have squabbled over how to form a new administration, leaving the country which hosts a russian military base and a major canadian-owned gold mine with a power vacuum.

Mr jeenbekovs offer to stand down appeared to end speculation that he had fled the country or gone into hiding following the unrest, in which protesters defaced his office, and freed his predecessor from jail.

Kyrgyzstan is a member of the eurasian economic union and the collective security treaty organisation, two moscow-led trade and defence pacts.

The countrys political upheaval is the third major crisis to erupt in russias neighbourhood in recent weeks, following mass protests in belarus against the continued rule of alexander lukashenko and the outbreak of war between armenia and azerbaijan, both allies of moscow.

President vladimir putins spokesman on thursday said the kremlin was deeply concerned at what it saw was a messy and chaotic situation, and reiterated moscows position as the regions de facto mediator.

Eleven opposition parties rejected the results of sundays election, in which the majority of votes were declared in favour of parties close to mr jeenbekov. observers said the poll was marred by allegations of vote-buying.

In a sign that the political impasse could be easing, two competing candidates for the post of prime minister said they had reached a power-sharing deal, local media reported on friday.

The political situation in the country has become tense, mr jeenbekov said in his statement. i urge political parties not to divide the people and not to disrupt society.