Donald Trump has said he plans to turn himself in on Thursday to a court in the state of Georgia to face charges of election interference.
A judge in Atlanta who is overseeing the former president's case has set bail at $200,000 (£157,000).
The agreement says Mr Trump can remain free pending trial so long as he does not attempt to threaten or intimidate witnesses.
Mr Trump denies 13 charges, including racketeering and false statements.
"The defendant shall perform no act to intimidate any person known to him or her to be a co-defendant or witness in this case or to otherwise obstruct the administration of justice," says the court filing posted on Monday.
"The above shall include, but are not limited to, posts on social media or reposts of posts made by another individual on social media," the order adds.
It was signed by Fulton County District Attorney Fani Willis, who is overseeing the case, and lawyers for Mr Trump.
Later on Monday Mr Trump posted to his social media platform, Truth Social: "Can you believe it? I'll be going to Atlanta, Georgia, on Thursday to be ARRESTED by a Radical Left District Attorney, Fani Willis."
"She campaigned, and is continuing to campaign, and raise money on, this WITCH HUNT," he added. "This is in strict coordination with crooked Joe Biden's DOJ [Department of Justice]."
Ms Willis has asked the judge to schedule arraignments - in which a defendant is formally charged and enters a guilty or not guilty plea - on 5 September.
She has also proposed that the trial begin in March.
Lawyers for Mr Trump were seen at the Fulton County court in Atlanta earlier on Monday.
According to reports, they were there to meet investigators and negotiate the bail bond's terms.
When Mr Trump does surrender, there will a "hard lockdown" of the surrounding county jail area, according to the Fulton County Sheriff's Office.
Barricades have been erected outside the court ahead of Mr Trump's anticipated surrender this week.
Law enforcement officials from the Fulton County sheriff's office, which normally provides security to the courthouse, as well as the US Marshals Service and the US Secret Service, are helping co-ordinate security.
The sheriff's office said on Monday the barricades would remain in place until Saturday. The 19 accused have until noon local time on Friday to turn themselves in for processing.
Mr Trump was charged last week alongside his co-defendants with attempting to subvert the will of the Georgia electorate by meddling in the state's election following his loss to Democrat Joe Biden.
The first former or serving US president ever to be indicted, he faces three other criminal cases.
Mr Trump has repeatedly denied any wrongdoing and called the charges politically motivated.
He is currently leading the Republican race to pick its next White House nominee to challenge the Democratic candidate, probably Mr Biden, in the 2024 presidential election.
On Monday, Mr Trump also took to social media to attack Georgia's Republican Governor Brian Kemp, who was heard in a recorded phone call resisting efforts by Mr Trump to interfere in the state's election-counting process in 2020.
Mr Trump has already said he will skip the first Republican televised debate on Wednesday evening.
"The public knows who I am & what a successful Presidency I had," Mr Trump said on Truth Social on Sunday. "I will therefore not be doing the debates."
Sources close to Mr Trump say he has instead recorded an interview with former Fox News host Tucker Carlson.
State-by-state primaries - in which Republican voters will choose their party's nominee - are due to begin on 15 January 2024.
Latest Stories
-
Cedi depreciation: We have complained a lot but is anybody listening? – Dr Otoo
29 mins -
Rev. Dr Lawrence Tetteh to march to Jubilee House over anti-gay bill delay
36 mins -
Throwing cash in the air – Nigeria’s wedding dilemma
41 mins -
I’ve lost a friend and a strong supporter – Bawumia eulogises John Kumah
1 hour -
I am the most expensive artiste in terms of production – Scott Evans claims
1 hour -
My time will come but it is not this year – Scott Evans on TGMA
1 hour -
NDC launches fundraiser campaign in Volta Region
2 hours -
Why call for Kissi Agyebeng’s removal when there are alternatives? – Dr Osae-Kwapong to Amidu
2 hours -
Former Deputy AG Joseph Kpemka appointed Deputy MD for BOST
2 hours -
Celebration of debts with Kenkey parties brought our economy to this low level – Suhuyini
2 hours -
Amidu’s petition strengthening Akufo-Addo’s desire to remove independent officeholders – Suhuyini
3 hours -
I was so proud when Afronita and Abigail danced to ‘Antenna’ at Britain’s Got Talent – Fuse ODG
3 hours -
Martin Amidu can’t judge Kissi Agyebeng by his ‘low standards’ – Suhuyini
3 hours -
GOC President denies not fulfilling promise to Deborah Acquah after 2022 Commonwealth Games
4 hours -
Foden named English Premier League Player of the Season
4 hours