Hundreds of rebel fighters and thousands of civilians are to evacuate the besieged Damascus suburb of Daraya after rebels and the Syrian army agreed a deal, a rebel leader and a state news agency have said.

Thursday's development ended one of the longest stand-offs in the Syria's five-year war.

"Seven hundred armed men with their personal weapons will leave Daraya to head to the (rebel-controlled) city of Idlib, while thousands of men and women with their families will be taken to reception centres," Syrian state news agency SANA reported.

One rebel official in the surburb told AFP news agency that the civilians would be transferred to regions under around Damascus government control.

The rebels would have to surrender other armaments to the army.

A military source told AFP that the army would enter Daraya after the evacuation from the rebel-held town

"We reached agreement on the evacuation of all of the people of Daraya civilians and fighters," said Captain Abu Jamal, head of Liwa Shuda al-Islam, the largest of two main rebel groups inside Daraya.

The evacuation would start on Friday and last for two or three days, he said.

READ MORE: Syrian Civil War Map

The Syrian army has surrounded rebels and civilians and blocked food deliveries in Daraya since 2012, regularly bombing the area just 7km from President Bashar al-Assad's seat of power.

Authorities agreed in June this year to allow food deliveries into the suburb under a cessation of hostilities deal, but just one shipment has made it since then.

In the past few weeks the army has escalated its bombardment of the rebel-held bastion, intensifying the use of barrel and incendiary bombs. Last week its only hospital was hit, rebels and aid workers said. 

Source: Agencies