import { grpc } from "@improbable-eng/grpc-web"; import Long from "long"; import _m0 from "protobufjs/minimal"; import { ABCIParams, BlockParams, EvidenceParams, ValidatorParams } from "../../../tendermint/types/params"; export declare const protobufPackage = "cosmos.consensus.v1"; /** MsgUpdateParams is the Msg/UpdateParams request type. */ export interface MsgUpdateParams { /** authority is the address that controls the module (defaults to x/gov unless overwritten). */ authority: string; /** * params defines the x/consensus parameters to update. * VersionsParams is not included in this Msg because it is tracked * separarately in x/upgrade. * * NOTE: All parameters must be supplied. */ block: BlockParams | undefined; evidence: EvidenceParams | undefined; validator: ValidatorParams | undefined; abci: ABCIParams | undefined; } /** * MsgUpdateParamsResponse defines the response structure for executing a * MsgUpdateParams message. */ export interface MsgUpdateParamsResponse { } export declare const MsgUpdateParams: { encode(message: MsgUpdateParams, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParams; fromJSON(object: any): MsgUpdateParams; toJSON(message: MsgUpdateParams): unknown; create(base?: DeepPartial): MsgUpdateParams; fromPartial(object: DeepPartial): MsgUpdateParams; }; export declare const MsgUpdateParamsResponse: { encode(_: MsgUpdateParamsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParamsResponse; fromJSON(_: any): MsgUpdateParamsResponse; toJSON(_: MsgUpdateParamsResponse): unknown; create(base?: DeepPartial): MsgUpdateParamsResponse; fromPartial(_: DeepPartial): MsgUpdateParamsResponse; }; /** Msg defines the consensus Msg service. */ export interface Msg { /** * UpdateParams defines a governance operation for updating the x/consensus module parameters. * The authority is defined in the keeper. */ UpdateParams(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare class MsgClientImpl implements Msg { private readonly rpc; constructor(rpc: Rpc); UpdateParams(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare const MsgDesc: { serviceName: string; }; export declare const MsgUpdateParamsDesc: UnaryMethodDefinitionish; interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition { requestStream: any; responseStream: any; } type UnaryMethodDefinitionish = UnaryMethodDefinitionishR; interface Rpc { unary(methodDesc: T, request: any, metadata: grpc.Metadata | undefined): Promise; } export declare class GrpcWebImpl { private host; private options; constructor(host: string, options: { transport?: grpc.TransportFactory; debug?: boolean; metadata?: grpc.Metadata; upStreamRetryCodes?: number[]; }); unary(methodDesc: T, _request: any, metadata: grpc.Metadata | undefined): Promise; } type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Long ? string | number | Long : T extends globalThis.Array ? globalThis.Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export declare class GrpcWebError extends globalThis.Error { code: grpc.Code; metadata: grpc.Metadata; constructor(message: string, code: grpc.Code, metadata: grpc.Metadata); } export {};