Statutes, unappealed court decision: President has sole discretion to say what are presidential records and what are personal papers, sole discretion to declassify anything. DOJ, FBI knew this but still conducted raid.
If they say this is a presidential record, Trump can say no it isn’t. If they say this is top secret, Trump can say no it isn’t. The raid was a fishing expedition to find something against Trump, even if courts would later throw it out. Partisan politics + law enforcement = toxic mixture lethal to a constitutional republic. But they knew that, too.