The terms of the deal would see hostages and prisoners released and Israel withdrawing from built-up areas of Gaza.