A Hamas official said any hostage exchange deal will only be agreed to alongside a permanent ceasefire agreement.