Britain clinched an eleventh-hour Brexit deal with the EU on Thursday, more than three years after Britons voted in a referendum to leave the bloc, but Prime Minister Boris Johnson still faces a knife-edge vote in Parliament to get it approved.

"Where there is a will there is a deal — we have one! It's a fair and balanced agreement for the EU and the UK and it is a testament to our commitment to find solutions," European Commission President Jean-Claude Juncker said in a tweet a few hours before the start of an EU summit in Brussels.

He said he would recommend that leaders of the other 27 member states approve the deal.