Wikileaks founder Julian Assange has said he will turn himself over to UK police on Friday if a UN panel rules he has not been unlawfully detained.
In a statement on Twitter, Assange said he would accept there was "no meaningful prospect of further appeal".
He has been fighting extradition to Sweden where he faces an allegation of sexual assault, which he denies.
Assange has not left the Ecuadorian Embassy in west London, since June 2012 after being granted asylum.
The UN's Working Group on Arbitrary Detention is due to announce the findings of its investigation into Assange's case on Friday.
Assange, who entered the Ecuadorian Embassy after the UK Supreme Court ruled the extradition against him could go ahead, asked the panel to examine his situation in September 2014.
Wikileaks has posted secret US government documents on the internet and Assange says he believes Washington will seek his transfer if he is sent to Sweden.
In his statement published by Wikileaks, Assange said he should be able to walk free if the the UN panel rules in his favour.
He said: "Should the UN announce tomorrow that I have lost my case against the United Kingdom and Sweden I shall exit the embassy at noon on Friday to accept arrest by British police as there is no meaningful prospect of further appeal.
"However, should I prevail and the state parties be found to have acted unlawfully, I expect the immediate return of my passport and the termination of further attempts to arrest me."