Turkish presidential spokesman Ibrahim Kalin said that his country's forces deployed in Libya will remain there as long as the bilateral military agreement exists between Ankara and Tripoli, and as long as the Libyan government demands it.

Kalin explained that the Turkish forces are in Libya according to the security and military agreement concluded with them, and that these forces continue to provide training and advice.

He expressed Ankara's concern about the military presence of retired Major General Khalifa Haftar, and other militias, which he said threaten stability in Libya.

He also indicated that the task of the interim government in Libya will not be easy due to the complex situation in the country, and stressed that the crisis in Libya cannot be resolved without the participation of Turkey.

Kalin also said - in an interview with the official TV channel TRT Haber - that Turkish companies will also play an active role in the efforts to rebuild Libya, adding that Ankara will provide support to the recently elected interim government.

Earlier last year, Kalan had said that the Turkish-Libyan agreements would continue, adding, "We continue to work with other actors, and we have very good relations with the political parties in Tripoli."

He indicated that the Libyans are aware that the Turkish intervention carries a historical and decisive importance, explaining that Turkey will continue to work with those who are elected to head the Libyan Presidency Council.

Turkish President Recep Tayyip Erdogan said on Tuesday that his country would consider withdrawing its forces if other foreign forces withdraw first.

Speaking on one occasion in Ankara, he added that members of the Turkish armed forces had been deployed in Libya only to train units loyal to the internationally recognized Government of National Accord, which is based in Tripoli.

Participants in the political dialogue forum in Geneva reached the election of transitional authorities charged with leading Libya until the general elections scheduled for next December 24.

The UN Security Council called on the new authority to quickly agree to form a new and comprehensive government, and to prepare for the presidential and parliamentary elections that the Libyan dialogue parties agreed to hold in the round of political dialogue that Tunisia hosted last November.

He also called on all parties to fully implement the ceasefire agreement and the withdrawal of all foreign forces and mercenaries from Libya without delay, stressing the importance of having a credible and effective Libyan-led ceasefire monitoring mechanism under the auspices of the United Nations.

In response to the French President Emmanuel Macron's demand for the withdrawal of Turkish forces, Erdogan said that Macron should withdraw the soldiers from Chad and Mali, as well as the mercenaries of the Russian "Wagner" company from Libya, before demanding Ankara to withdraw its forces from there.