Mediators from Qatar, Egypt and the United States have been waiting for Hamas to respond to a proposal that, according to details released by Britain, would halt fighting for 40 days and exchange hostages for Palestinians held by Israel. Hamas has been calling for a permanent ceasefire.