Mediators gave Israel and Hamas a final draft of a deal on Monday to end the war in Gaza, an official briefed on the negotiations said, after a midnight “breakthrough” in talks attended by envoys of both Joe Biden and Donald Trump. The official said the text for a ceasefire and release of hostages was presented by Qatar to both sides at talks in Doha, which included the chiefs of Israel’s Mossad and Shin Bet spy agencies and Qatar’s prime minister. Steve Witkoff, who will become U.S. envoy when Trump returns to the U.S. presidency next week, attended the talks, the official said. A U.S. source said the outgoing Biden administration’s envoy Brett McGurk was also there. “The next 24 hours will be pivotal to reaching the deal,” the official said, characterising the draft as the outcome of a breakthrough reached in the early hours of Monday. Qatar’s ruling emir, Sheikh Tamim bin Hamad al-Thani, received a Hamas delegation headed by senior official Khalil al-Hayya to discuss the ceasefire talks, the emir’s office said. Israel’s Kan radio, citing an Israeli official, reported on Monday that Israeli and Hamas delegations in Qatar had both received a draft, and that the Israeli delegation had briefed Israel’s leaders. Israel, Hamas and the foreign ministry of Qatar did not respond to requests for confirmation or comment. Officials on both sides, while stopping short of confirming that a final draft had been reached, described progress at the talks.