If, in an action pursuant to § 34A-10-1, administrative, licensing, or other proceedings are required or available to determine the legality of the defendant's conduct, the court shall remit the parties to such proceedings. The proceedings shall be conducted in accordance with and subject to the provisions of chapters 34A-1 and 34A-2. In so remitting the court may grant temporary equitable relief if necessary for the protection of the air, water, and other natural resources or the public trust in such resources from pollution, impairment, or destruction. In so remitting the court shall retain jurisdiction of the action pending completion of the action for the purpose of determining whether adequate protection from pollution, impairment, or destruction has been afforded.
SDCL 34A-10-5