Audio By Carbonatix
Sri Lankan President Gotabaya Rajapaksa has confirmed he will resign, the prime minister's office has said, after tens of thousands of protesters stormed the official residences of both men.
Sri Lanka is in deep financial crisis and the crowds say they won't leave until both men quit their posts.
The parliament Speaker had earlier said the president would resign on 13 July.
Mr Rajapaksa, whose whereabouts are unknown, has not spoken publicly since his residence was stormed on Saturday.
Sources have told the BBC he is on a navy vessel in Sri Lankan waters. He was moved to safety before protesters entered the presidential palace.
The president has been blamed for the country's economic mismanagement, which has caused dire shortages of food, fuel and medicine for months.
The Parliament Speaker first announced his resignation on Saturday, but many Sri Lankans responded with scepticism to the idea that he would relinquish power.
On Monday, Prime Minister Ranil Wickremesinghe's office said in a statement it had been informed by Mr Rajapaksa that he would step down on Wednesday.
But under Sri Lanka's constitution, his resignation can only formally be accepted when he resigns by letter to the Speaker - which has yet to happen.
Prime Minister Wickremesinghe had earlier said he would step down from his position. His house was set on fire during Saturday's unrest.
Inside the occupied palace on Sunday, protesters were refusing to budge.
"Our struggle is not over," student protest leader Lahiru Weerasekara said, quoted by AFP. "We won't give up this struggle until [President Rajapaksa] actually leaves," he said.
"The next couple of days are going to be extremely uncertain times as to see what transpires politically," political analyst and human rights lawyer Bhavani Fonseka told Reuters, adding that it would be interesting to see if the two leaders "actually resign".
Other politicians in Sri Lanka met on Sunday to discuss how to handle a smooth transition of power.
The speaker of Sri Lanka's parliament told the BBC World Service Newshour programme a new cross-party coalition government would need to be formed within a week of the president officially stepping down.

The palace storming on Saturday was the culmination of months of mainly peaceful protests in Sri Lanka.
Huge crowds converged on the official residence of President Rajapaksa, chanting slogans and waving the national flag before breaking through the barricades and entering the property.
Footage online showed people roaming through the house and swimming in the president's pool, while others emptied out a chest of drawers, picked through the president's belongings and used his luxurious bathroom.
Mr Rajapaksa vacated his official residence on Friday as a safety precaution ahead of the planned protests, two defence ministry sources said, according to Reuters.
Although it is Mr Rajapaksa's official residence, he usually sleeps at a separate house nearby. His brother, former Prime Minister Mahinda Rajapaksa, is at a naval base in the country, the sources say.
Latest Stories
-
Ghana repatriates 120 Nigerians rescued from suspected cybercrime centres
4 minutes -
NPP rejects Emelia Agbenyo’s appointment as Deputy EC Chair, demands withdrawal
9 minutes -
EOCO grants Suame MP John Darko enquiry bail in GH¢27m SIC investigation
12 minutes -
NPP cannot question EC appointment after appointing own people to Commission – Kwakye Ofosu
18 minutes -
BoG deepens public trust with regional stakeholder forum in Techiman
27 minutes -
‘We have turned the tide’ – Ato Forson says Ghana is ready to take off
32 minutes -
Police arrest man captured in viral video assaulting wife in Agona Nkwanta
34 minutes -
KATH Mother and Baby Unit construction stalled for 14 months over unpaid contractor arrears
48 minutes -
Government wanted to ‘tilt the balance’ with new EC appointments – Kwakye Ofosu
54 minutes -
Angry Tema Community 25 residents threaten to sleep at GWL over water shortage
1 hour -
BoG takes financial literacy drive to Techiman, vows to protect depositors
1 hour -
‘Stop the distractions’ – Akosua Manu demands answers over GH¢49.7m South Africa evacuation cost
1 hour -
Formula 1 to return to Africa with Rwanda Grand Prix in early 2030s
1 hour -
Mahama says Ghana is safer today as he commissions 85-bed ward at Police Hospital
1 hour -
LA 2028: Black Queens face Zambia in final Olympic qualifier
1 hour