Negotiations for a long-term ceasefire deal between Israel and Hamas are in “the final stretch,” a senior member of the terror group said Friday.

Lebanon’s Al-Mayadeen TV quoted Kahlil al-Hayya as saying the deal would follow understandings reached at the end of the 2014 war between the sides. He did not elaborate.

Al-Hayya added that Hamas supports reaching an accord.

Get The Times of Israel's Daily Edition by email and never miss our top stories Free Sign Up

The Hamas leader was speaking from Cairo, where a Hamas delegation was said to be discussing the deal being mediated by Egypt and the UN.

US Middle East envoy Jason Greenblatt praised Egypt, Israel and UN Mideast envoy Nickolay Mladenov for their efforts to “end the violence and terror” in Gaza and reach a truce. Greenblatt called on Palestinians to “embrace” coexistence with the Jewish state for “a better future.”

(1/2) We commend Egypt, Israel @nmladenov for their roles in an effort to end the violence & terror in the Gaza area. Much can be achieved for all people in the region through honest talk & meaningful action. … pic.twitter.com/ASU1kVckGK — Jason D. Greenblatt (@jdgreenblatt45) August 17, 2018

On Friday thousands of Gazans demonstrated along the Israeli border in weekly Hamas-backed ‘March of Return’ demonstrations. Hamas leaders had urged the public to participate in Friday’s protests.

Rioters hurled rocks, improvised bombs and Molotov cocktails at soldiers and burned tires to create a smokescreen. Others launched incendiary balloons towards Israel.

The Hamas-run health ministry in Gaza reported that two men had been killed and around 250 injured, of which at least 25 were said hit by live fire.

On Thursday Al-Mayadeen reported that the long-term deal taking shape will last for a year and see the establishment of a cargo shipping connection between Gaza and Cyprus. Israel will have security control over the sea traffic between the Palestinian coastal enclave and Cyprus, according to the report from the TV channel, which cited sources familiar with the details.

Hadashot TV news reported Thursday that the head of the Shin Bet security agency has warned cabinet ministers that excluding the Palestinian Authority from the accord in Gaza will send a message that terrorism is rewarded.

“Pushing aside [Abbas] from the process [of reaching an] agreement will strengthen Hamas in the West Bank and prove terror pays,” Nadav Argaman was quoted as saying. “Such a move would also weaken the moderates and prove to Palestinians that only the path of violence achieves results.”

Hamas and the PA have been at odds since the terror group violently took control of the Gaza Strip in 2007. A number of reconciliation agreements between them have failed to patch up their differences, most recently an Egyptian-sponsored deal signed in October.

Recent months have seen repeated rounds of intense violence between Israel and Hamas, along with weekly border protests at the Gaza border that have regularly included rioting, attacks on Israeli troops and attempts to infiltrate and sabotage the border fence.

At least 160 Palestinians have been killed by Israeli fire since the weekly protests began, a Hamas ministry says. Hamas has acknowledged that dozens of those killed were its members.

One Israeli soldier was shot dead by a Palestinian sniper.

In addition to the border clashes, southern Israel has experienced hundreds of fires as a result of incendiary kites and balloons flown over the border from Gaza. Over 7,000 acres of land have been burned, causing millions of shekels in damages, according to Israeli officials.

Hamas has long made access to a sea port a key strategic goal. Under the conditions of Israel’s naval blockade, goods heading to Gaza are currently shipped to Israeli ports and then trucked into Gaza.

Israel has imposed a blockade on Gaza since Hamas, which is sworn to Israel’s destruction, seized the territory from the PA. It says the blockade is in place in order to prevent weapons and other military equipment from entering the Strip.

Hamas has fought three wars with Israel in the last decade.

Sources told Al-Mayadeen that the forthcoming deal will include Qatari funding for Gaza’s electricity bills in cooperation with Israel, and Qatari payment of civil service employees’ salaries in Gaza in cooperation with Egypt.

Defense Minister Avigdor Liberman pitched the idea of setting up a floating dock for Palestinian sea traffic in Cyprus when he met with Cypriot President Nicos Anastasiades in June, Hadashot news reported at the time.

The plan was conditional on the return of two Israeli civilians and the bodies of two IDF soldiers held by Hamas, the television report said.

Two apparently mentally ill Israeli civilians — Avera Mengistu and Hisham al-Sayed — who entered Gaza of their own volition in 2014 and 2015, respectively, are currently being held Hamas, along with the remains of two slain IDF soldiers, Hadar Goldin and Oron Shaul.

According to a Channel 10 report Thursday, Liberman met with Qatar’s envoy to Gaza during his trip to Cyprus, and the two discussed efforts to reach a ceasefire in Gaza and Qatari proposals to improve humanitarian conditions in the Strip, as well as the return of the Israeli citizens and IDF soldiers’ bodies.