Sri Lanka's acting president Ranil Wickremesinghe on Monday declared a state of emergency in the country with immediate effect, ahead of the July 20 election for the post of the president which fell vacant after Gotabaya Rajapaksa’s resignation following the popular public uprising against him.