A lawsuit filed to determine the rights and obligations of parties under a contract, such as an insurance policy, before damages are fully litigated.