Notwithstanding sections
797
(e) and
817 of this title, the Commission shall discontinue exercising licensing and regulatory authority under this subchapter over qualifying project works in the State of Alaska, effective on the date on which the Commission certifies that the State of Alaska has in place a regulatory program for water-power development that—