CELLE-SAINT-CLOUD, France, July 25 (Reuters) - Libya's Prime Minister Fayez al-Serraj and the divided country's eastern commander Khalifa Haftar are set to agree to a conditional ceasefire and to work towards elections, according to a draft statement emailed by French President Emmanuel Macron's office.

The two men, who are due to meet Macron in the afternoon,

agreed to commit to use force only for counter-terrorism, according to the statement, which the Elysee later said had been sent prematurely and was only a working document.

They are set to commit to working for elections as soon as possible from July 25 under U.N. supervision.

(Reporting by Marine Pennetier; Additional reporting by Patrick Markey; Writing by Ingrid Melander) ((sudip.kargupta@thomsonreuters.com; +33 1 49 49 53 84; Reuters Messaging: sudip.kargupta.thomsonreuters.com@reuters.net))