THORNTON MANOR, England (Reuters) - A Brexit deal could be clinched by the end of October to allow the United Kingdom to leave the European Union in an orderly fashion, Irish Prime Minister Leo Varadkar said after what he called a very positive meeting with Boris Johnson.

With just three weeks to go before the United Kingdom is due to leave the world’s biggest trading bloc, it remains unclear on what terms it will leave or indeed whether it will leave at all.

After Brexit descended into a public row between London and Brussels earlier this week, Johnson, the British prime minister, met Varadkar at Thornton Manor in Cheshire on Thursday in a last ditch bid to avert an acrimonious divorce or another delay.

“I think it is possible for us to come to an agreement, to have a treaty agreed, to allow the UK to leave the EU in an orderly fashion and to have that done by the end of October,” Varadkar told Irish reporters.

“But there’s many a slip between cup and lip and lots of things that are not in my control,” he said.

When asked about who made concessions to break the impasse, Varadkar said: “I don’t think this should be seen in the context of who’s making concessions, or who the winners and losers are, I don’t think that’s the game any of us want to play.”

In a joint statement, the two leaders said they “could see a pathway to a possible deal” and that the EU’s chief negotiator Michel Barnier would meet his British counterpart Steve Barclay in Brussels on Friday.

Sterling shot up 1.5% to $1.2387. British 10-year government bond yields recorded their biggest one-day rise in nearly four years.

To get a done deal, Johnson must master the complexities of the Irish border before getting the approval of Europe’s biggest powers and then sell any deal to the British parliament in which he has no majority and which he suspended unlawfully last month.

Johnson, the face of the 2016 Brexit campaign, made no further comment on the meeting with Varadkar. The details of what, if anything, had been agreed were unclear.

Ireland holds the key to any deal. It will have to consent to any solution to the hardest Brexit riddle of all: how to prevent the British province of Northern Ireland becoming a backdoor into the EU’s markets without having border controls.

The EU fears controls on the 500-km (300-mile) Irish border with Northern Ireland would undermine the 1998 Good Friday Agreement which ended three decades of sectarian and political conflict that killed more than 3,600 people.

Although Johnson has insisted Britain will leave the EU on Oct. 31 even if no agreement is reached, the British parliament has passed a law saying he must request a delay.

IRELAND

Hopes of a Brexit deal were dented earlier this week when a Downing Street source said agreement was essentially impossible because German Chancellor Angela Merkel had made unacceptable demands. The EU said Johnson was playing a stupid blame game.

Ireland is the biggest issue of disagreement.

The Irish border has been largely invisible since army checkpoints were taken down after the 1998 peace deal largely ended the violence between the region’s pro-British majority and an Irish nationalist minority.

Slideshow ( 11 images )

Politicians have warned that the re-imposition of physical infrastructure on the border when it becomes the EU’s external frontier would anger Irish nationalists in Northern Ireland who aspire to unification with the Republic of Ireland, and help militants opposed to the peace deal to recruit new members.

To get around the problem, the EU agreed an insurance policy - known as the backstop - last November with Johnson’s predecessor Theresa May.

The Withdrawal Agreement that May struck says the United Kingdom will remain in a customs union “unless and until” alternative arrangements are found to avoid a hard border.

Johnson said that was undemocratic, undermined the unity of the United Kingdom and would keep it trapped in the EU’s orbit for years to come.

Slideshow ( 11 images )

Last week he proposed an all-island regulatory zone to cover all goods. Northern Ireland would leave the EU’s customs area along with the rest of the United Kingdom and the province’s institutions would be able to opt to exit the regulatory zone - a step too far for Ireland and the EU.

Johnson and Varadkar said they had discussed consent and customs.

Though Ireland is only about an eighth of the size of the United Kingdom’s $2.8 trillion economy, Dublin is backed by the rest of the EU whose economy - minus the United Kingdom - is worth $15.9 trillion.

While Ireland would be very badly affected by a no-deal Brexit, the relative importance of Ireland in the negotiations up-ends centuries of history in which it has had a much weaker hand than London, both before and after winning independence from Britain.

The EU’s two most powerful leaders, Germany’s Merkel and French President Emmanuel Macron, will meet at the Elysee Palace on Sunday ahead of next week’s summit.

“We want to reduce the negative effects, even if there is a disorderly Brexit, in both countries,” Merkel said.

Macron said on Thursday Britain would have to pay the price should it decide to proceed with a position over Brexit that is unacceptable for the other 27 EU countries.

“If they don’t want to make any move or make something which is not accepted, they will have to take the responsibility,” he said.