Turkiye intervened to save the Libyan government against Haftar who was backed by Isreal, Russia, France, Iran, Assad, UAE, Greece and Egypt. Even the EU had a thing called operation irini? which was meant to stop arms going to the libyan government, while turning a blind eye to weapon shipments to Haftar. There was even an incident where a French frigate was locked onto by Turkish forces when it attempted to threaten Turkish civilian naval assets supporting Libya.
Had Haftar won, he would basically be a slightly more pathetic version of sisi for Libya. Meaning the nation will be told to move in ways that only harms Muslims. The reason haftar was backed by said nations was because he had basically promised them first dibs on Libyas oil and gas assets.
What i think is interesting is that Turkiye after securing the government in the east, started to diplomatically approach haftar to work to unify the country. Turkiye ultimately did the same in Syria with the separatist ypg kurds. Turkiye basically saved the Syrian people, supported them to win the war and ultimately work towards unifying the entire nation.
So i suspect Libya will enter this pact at some point.
Libya has a big history with the Turks.