Number 10 refused to explicitly comment on ‘hypotheticals’ but said the UK would follow its ‘legal obligations’.