Rival Palestinian factions Hamas and Fatah signed an agreement on Thursday to end a decade-long split following talks mediated by Egypt in Cairo, with President Mahmoud Abbas calling it a "final" accord.

Under the agreement, the West Bank-based Palestinian Authority is to resume full control of the Hamas-controlled Gaza Strip by December 1, according to a statement from Egypt's intelligence agency, which oversaw the talks.

Abbas welcomed the deal and said he considered it a "final agreement to end the division." However many details remain to be resolved and previous reconciliation attempts have repeatedly failed.

It was signed in Cairo by new Hamas deputy leader Salah al-Aruri and Azzam al-Ahmad, the head of the Fatah delegation for the talks.

Negotiations are now expected to be held on forming a unity government, with the various Palestinian political movements invited to another meeting in Cairo on November 21.

Key points of Palestinian unity agreement - The Fatah-dominated Palestinian Authority, which is based in the West Bank, will resume full control of Gaza by December 1 at the latest. - All the major Palestinian factions, including Fatah and Hamas, will meet in Cairo on November 21 for discussions about forming a unity government. - The border crossings from Gaza with Israel and Egypt will be handed back to the Palestinian Authority in the coming weeks, with a November 1 deadline, according to the Fatah negotiator Azzam al-Ahmed. The crossing with Egypt may require more time for the handover. - Palestinian President Mahmoud Abbas will visit Gaza for the first time in a decade in the coming weeks, according to an official from his party. - The issue of tens of thousands of civil servants employed by Hamas will be solved by February 2018, according to Hamas's al-Aqsa television. - Punitive measures taken by the PA against Gaza, including reductions in energy payments for the Strip, are expected to be relieved. Still to be resolved - The future of Hamas's 25,000-strong military wing, the Ezzedine al-Qassam Brigades, was not mentioned in any of the public statements or documents. - Recognition of Israel was also not mentioned. The Abbas-led Palestine Liberation Organisation has recognised Israel, while Hamas has not.

An official from Abbas' Fatah movement said the Palestinian president was planning to travel to the Gaza Strip 'soon' as part of the unity bid in what would be his first visit in a decade.

Sanctions taken by Abbas against Hamas-controlled Gaza will also soon be lifted, the Fatah official said.

The deal includes 3,000 members of the West Bank-based Palestinian Authority's police force re-deploying to Gaza, a member of the negotiating team told AFP on the condition of anonymity.

The figure is however a fraction of the more than 20,000 police officers employed separately by Hamas.

'End very shortly'

Another party to the negotiations, speaking on the condition of anonymity, said the agreement would see Palestinian Authority forces take control of the Rafah border crossing between Gaza and Egypt.

One of the key issues has been punitive measures taken by Abbas against Gaza in recent months, including reducing electricity payments that left the territory's residents with only a few hours of power a day.

"All the measures taken recently will end very shortly," Zakaria al-Agha, a senior Fatah leader in the Gaza Strip, told AFP.

The two sides had been meeting in the Egyptian capital this week with the aim of ending the crippling decade-old split between the rival factions.

Hamas seized Gaza from Fatah in a near civil war in 2007 and the two factions have been at odds ever since. Multiple previous reconciliation efforts have failed.

Egypt has been keen to improve security in the Sinai Peninsula which borders Gaza and where extremist rebels have fought a long-running insurgency.

An Egyptian source close to the talks said intelligence chief Khaled Fawzi had followed the negotiations closely.

Fate of armed wing

Last month, Hamas agreed to cede civil power in Gaza to the Palestinian Authority but the fate of its vast military wing remains a significant issue for the two sides.

Islamist movement Hamas is blacklisted as a terrorist organisation by the United States and the European Union.

It has fought three wars with Israel since 2008 and the blockaded Gaza Strip has seen deteriorating humanitarian conditions.

Faced with increasing isolation and a severe electricity shortage, Hamas has reached out to Egypt for help, hoping to have the Rafah border opened. The crossing has remained largely closed in recent years.

Egypt has also agreed to provide fuel to the Gaza Strip for electricity generation.

In return, Cairo pressed Hamas to move forward on reconciliation with Fatah.

Previous attempts at reconciliation have repeatedly failed, and many analysts are treating the latest bid with caution, waiting to see if actual change will occur on the ground.

Last week, Palestinian Authority Prime Minister Rami Hamdallah visited Gaza for the first time since 2015 and his ministers took formal control of government departments in the territory.

But the move was seen as mainly symbolic, with Hamas still effectively in charge in the Palestinian enclave of two million people bordered by Egypt, Israel and the Mediterranean Sea.

One of the key sticking points will be the fate of Hamas's 25,000-strong military wing, the Ezzedine al-Qassam Brigades.

Reconciliation could also pose a dilemma for international efforts to reach an Israeli-Palestinian peace deal since Hamas has not recognised Israel, unlike the Abbas-led Palestine Liberation Organisation.