Arab mediators worked on a proposal to end the war with Hamas that would include a five-to-seven-year truce and the release of all remaining hostages, officials said Wednesday.