The European Commission’s and Britain’s Brexit negotiators have agreed on a declaration on the two sides’ future ties, an EU official said.