Libya's eastern-based parliament has voted unanimously against deals on security and maritime cooperation the United Nations-recognised government in Tripoli signed with Turkey, days after Turkish legislators approved a troop deployment to chaos-wracked Libya.

The country has been split into rival eastern and western administrations since 2014.

The UN-recognised Government of National Accord (GNA) currently controls Tripoli in northwestern Libya, and a parallel administration holding the east of the oil-rich country, supported by renegade military commander Khalifa Haftar's self-styled Libyan National Army (LNA).

Turkish President Recep Tayyip Erdogan and Fayez al-Sarraj, the head of GNA, signed the two controversial deals at a meeting in Istanbul in November.

More:

On Saturday the parliament, which backs a rival administration in eastern Libya, rejected the deals.

The Tobruk-based House of Representatives also voted unanimously to cut relations with Turkey and refer al-Sarraj for prosecution on a charge of "high treason" because he sought a foreign power's military help, the House's spokesman Abdullah Bleihaq told dpa news agency.

On Thursday, Turkey's parliament passed a motion to allow a military intervention in Libya, voting in favour of a one-year mandate to deploy troops amid an escalating civil war.

It is not yet clear if al-Sarraj's administration will comply with the vote by Libya's elected parliament.

Al-Sarraj's internationally recognised government is battling eastern forces led by Haftar.

In April, Haftar's LNA launched an offensive to seize Libya's capital, Tripoli.

The LNA has been threatening to target Turkish nationals and businesses in Libya and Turkish ships off the country's coast, the motion passed by Turkey's parliament said.

The war also threatens Turkey's interests in the Mediterranean and North Africa, it added.

Haftar's forces are backed by Egypt, the United Arab Emirates, Saudi Arabia and Russia.

On Saturday, Saudi Arabia condemned "the recent Turkish escalation in Libya" and the Turkish parliament's approval for troops to be deployed to Libya.

The Saudi foreign ministry said in a statement carried by the state news agency SPA that it considered the move a violation of UN Security Council decisions.

"The kingdom affirms that this Turkish escalation poses a threat to the security and stability in Libya and a threat to Arab and regional security, as it is an interference in the internal affairs of an Arab country in flagrant violation of international principles and covenants," it said.

The Arab League has warned that foreign military interference in Libya will facilitate the arrival of foreign terrorist fighters into the war-torn country.