Hamas said Friday it had agreed to a deal announced by US President Donald Trump to end its war with Israel, which includes it handing over its weapons to a Palestinian governing committee and the gradual withdrawal of Israeli forces from Gaza.

Israel has yet to officially comment on the announcement, but a political source told AFP "that there will be no withdrawal whatsoever" from Israeli forces' current lines "unless Hamas undergoes a genuine disarmament".

Far-right National Security Minister Itamar Ben Gvir denounced the agreement as "unacceptable", saying it was "tantamount to agreeing to Hamas organising for the next massacre".

The Palestinian Islamist group's weapons have been one of the key sticking points in implementing a ceasefire deal in place since October, but Trump announced late Thursday an agreement for Hamas's "complete disarmament", calling it a critical step toward a new Palestinian government in Gaza.

The Israeli source said that "the issue of Gaza did not come up" in this week's meeting between Trump and Israeli Prime Minister Netanyahu in Washington.