UK minister will not work for a no-deal Brexit prime minister