US officials have had “ongoing talks and discussions” with Hamas officials, White House press secretary Karoline Leavitt has confirmed.