CAIRO (AP) — A deal appears to be emerging between the United States and Iran to end the war and open the Strait of Hormuz, and U.S. President Donald Trump over the weekend said it had been “largely negotiated.”It is not clear when or how the deal might be finalized and when its various parts will take effect. Trump spoke after calls with allies in the Middle East, including a separate call with Israel. Details come from two regional officials and a U.S. official who spoke on condition of anonymity to discuss the sensitive negotiations. Here’s what we know and don’t know:

The war would endIn the 12 weeks since the U.S. and Israel launched the war with attacks on Iran that killed senior officials including Supreme Leader Ayatollah Ali Khamenei, Tehran has insisted that any deal focus on ending the fighting on all fronts. That includes Lebanon, where the Iranian-backed Hezbollah militant group has been fighting Israel since two days into the war.A fragile ceasefire has held since April 7. An end to the war would ease concerns throughout a region that saw Gulf havens and travel hubs like the United Arab Emirates struck by Iranian missiles and drones. It would allow for global shipping, including an estimated 20% of the world’s oil and natural gas, to begin flowing through the Strait of Hormuz again. It also would allow the rebuilding of energy and other infrastructure in the region.