By Bernd Debusmann Jr & Anthony Zurcher
BBC News, Washington and Palm Beach
This video can not be played
What will be in the FBI's Trump search affidavit?
A US judge has ordered investigators to release a redacted version of court papers that convinced him to authorise a search of Donald Trump's estate.
The public version of the affidavit, a document that includes the evidence gathered by prosecutors, could reveal new details about the inquiry.
The Department of Justice had opposed releasing an uncensored version amid its ongoing investigation.
The FBI search was part of a probe into the potential mishandling of documents.
According to the search warrant, the FBI wanted to see if Mr Trump committed a crime by improperly handling government records when he took them from the White House to Mar-a-Lago as his administration ended.
US presidents are required to transfer documents and emails to the National Archives when they leave office.
The former US president has denied wrongdoing and insists the classified files that investigators say were found in Florida had already been declassified by himself.
On Thursday, US Magistrate Judge Bruce Reinhart ordered the affidavit to be released with redactions by noon (17:00 BST) on Friday.
He said prosecutors had demonstrated a "compelling reason" to black out parts of the document, which would reveal the identities of witnesses, law enforcement agents and uncharged parties, as well as "the investigation's strategy, direction, scope, sources and methods".
His ruling came shortly after the justice department confirmed that it had submitted to the judge a copy of the affidavit with proposed redactions.
Even in redacted form, the affidavit could provide clues as to why Mr Trump allegedly took classified documents with him in the chaotic final days of his presidency and what he did with them while they were stored in Palm Beach.
The rest may have to wait for when – or if – any criminal charges are filed.
The warrant itself was released on 12 August alongside an inventory of recovered items that showed 11 sets of classified files were removed from the estate.
Several news organisations have applied for the affidavit to be unsealed, citing public interest given the historic nature of the search of a former president's home.
The Department of Justice, however, had resisted the move, arguing that its release could cause "irreparable damage" to its continuing investigation. It also said the necessary redactions would render the document "meaningless".
Mr Trump and his lawyers – who have characterised the Mar-a-Lago search as politically motivated and unlawful – have called for the unredacted affidavit to be released.
A spokesman for Mr Trump, Taylor Budowich, said that efforts to "hide" its contents were "cynical" and could be used to "hide government corruption".
Earlier this week, Mr Trump's legal team asked that the investigation be frozen and that an independent third-party attorney, known as a special master, be brought in to oversee the documents that the FBI took during the search.
What we do and don't know about the FBI's Trump search
Trump sues justice department over Florida search
Prosecutors oppose releasing Trump search evidence
Zelensky calls for 'just punishment' for Russia
Trumps 'inflated net worth by billions' – lawsuit
Hundreds held after Russia call-up sparks protests
The Russians risking freedom to protest Putin's war
The fake sex chats fuelled by an elaborate scam
Why Brazil's election matters so much to the US
Who are Iran’s morality police?
Fact-checking Russian claims Nato troops are in Ukraine
The vloggers capturing life on India's trains
16 moments from the Queen's 16 tours of Australia. Video
The men behind a record-breaking menstrual campaign. Video
The kids living in their parents' shadows
Four cities saying no to cars
The biggest myths of the teenage brain
The jobs employers can't fill
© 2022 BBC. The BBC is not responsible for the content of external sites. Read about our approach to external linking.