Colombo (AFP) - The resignation of Sri Lanka's president has been accepted, the crisis-hit country's parliamentary speaker announced Friday, after he fled the country earlier this week and notified him from Singapore that he was stepping down.
The formal declaration makes Gotabaya Rajapaksa -- once known as 'The Terminator' for his ruthless crushing of Tamil rebels -- the first Sri Lankan head of state to resign since it adopted an executive presidency in 1978.
He emailed in his resignation from Singapore after flying to the city-state from the Maldives, where he initially escaped after demonstrators overran his palace at the weekend.
"Gotabaya has legally resigned" with effect from Thursday, speaker Mahinda Yapa Abeywardana told reporters. "I have accepted the resignation."
Under Sri Lanka's constitution, Prime Minister Ranil Wickremesinghe -- whose departure is also being demanded by protesters -- will automatically become acting president until parliament can elect an MP to succeed Rajapaksa for the rest of his term.
The legislature will be summoned on Saturday, Abeywardana told reporters at his residence, adding he hoped to complete the election process "within seven days".
Rajapaksa's departure came after months of protests over what critics said was his mismanagement of the island nation's economy, leading to severe hardships for its 22 million people.
At a seafront boulevard that has served as the headquarters of the protest movement that ousted him, a small crowd gathered its remaining strength late Thursday to celebrate his resignation.
Only a few hundred people were there to mark the milestone, with many veterans of the protest movement exhausted after enduring tear gas barrages and tense confrontations with security forces in the preceding days.
"I certainly feel, I think the crowd here definitely does feel, quite happy about it," activist Vraie Balthaazar told AFP.
'Private visit' to Singapore
Rajapaksa, his wife Ioma and their two bodyguards arrived in Singapore from the Maldives on board a Saudia airline flight.
As president, Rajapaksa enjoyed immunity from arrest, and he is understood to have wanted to go abroad before stepping down to avoid the possibility of being detained.
The former Maldivian president Mohamed Nasheed is believed to have played a behind-the-scenes role in getting him out of the country, and said Rajapaksa feared he would be killed if he remained.
"I believe the President would not have resigned if he were still in Sri Lanka, and fearful of losing his life," Nasheed tweeted.
Singapore's foreign ministry confirmed Rajapaksa had been allowed to enter the city-state for a "private visit", adding: "He has not asked for asylum and neither has he been granted any asylum."
He is expected to look to stay in Singapore for some time, according to Sri Lankan security sources, before potentially moving to the United Arab Emirates.
The spiralling economic crisis led to Sri Lanka defaulting on its $51-billion foreign debt in April, and it is in talks with the IMF for a possible bailout.
But the talks have been thrown off course by the political upheaval, and an IMF spokesman said Thursday the fund hoped the unrest can be resolved soon so negotiations can resume.
The island has nearly exhausted its already scarce supplies of petrol, with the government ordering the closure of non-essential offices and schools to reduce commuting and save fuel.
In Colombo, demonstrators on Thursday left several of the emblematic state buildings they had occupied in recent days after Wickremesinghe instructed security forces to restore order and declared a state of emergency.
Witnesses saw dozens of activists leave Wickremesinghe's office as armed police and security forces moved in.
The capital was put under curfew and armoured personnel carriers patrolled some areas.
Hundreds of thousands of people had visited the prime minister's compound since it was opened to the public after he fled and his security guards backed down.
By Thursday afternoon, the gates were closed, with armed guards posted both inside and outside.
Police said a soldier and a constable were injured in clashes with protesters outside the national parliament as security forces beat back an attempt to storm the legislature.
Protesters also left the studios of the main state television station after breaking in on Wednesday.
The main hospital in Colombo said about 85 people were admitted with injuries on Wednesday, with one man suffocating to death after being tear-gassed at the premier's office.
The military and the police were issued fresh orders Thursday to firmly put down any violence, and warned troublemakers they were "legitimately empowered to exercise their force".
But student Chirath Chathuranga Jayalath, 26, said: "You cannot stop this protest by killing people.They'll shoot our heads but we do this from our hearts."