State attorneys general and campaign lawyers have been preparing for a potential flood of lawsuits after the election results come in.