declaratory relief and public law litigation