The Red Mirage

What happens if Trump declares victory on election night, and tries to dispute any “late” uncounted ballots — both in the courts and in the free-for-all of public opinion?