Sri Lanka's main Opposition parties agreed to form an all-party interim government after the anticipated resignation of President Gotabaya Rajapaksa on Wednesday.