import { Plan } from '../../../cosmos/upgrade/v1beta1/upgrade'; import * as Long from 'long'; import { Reader, Writer } from 'protobufjs/minimal'; /** * QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC * method. */ export interface QueryCurrentPlanRequest { } /** * QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC * method. */ export interface QueryCurrentPlanResponse { /** * plan is the current upgrade plan. */ plan?: Plan; } /** * QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC * method. */ export interface QueryAppliedPlanRequest { /** * name is the name of the applied plan to query for. */ name: string; } /** * QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC * method. */ export interface QueryAppliedPlanResponse { /** * height is the block height at which the plan was applied. */ height: Long; } /** * Query defines the gRPC upgrade querier service. */ export interface Query { /** * CurrentPlan queries the current upgrade plan. */ CurrentPlan(request: QueryCurrentPlanRequest): Promise; /** * AppliedPlan queries a previously applied upgrade plan by its name. */ AppliedPlan(request: QueryAppliedPlanRequest): Promise; } export declare class QueryClientImpl implements Query { private readonly rpc; constructor(rpc: Rpc); CurrentPlan(request: QueryCurrentPlanRequest): Promise; AppliedPlan(request: QueryAppliedPlanRequest): Promise; } interface Rpc { request(service: string, method: string, data: Uint8Array): Promise; } export declare const protobufPackage = "cosmos.upgrade.v1beta1"; export declare const QueryCurrentPlanRequest: { encode(_: QueryCurrentPlanRequest, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): QueryCurrentPlanRequest; fromJSON(_: any): QueryCurrentPlanRequest; fromPartial(_: DeepPartial): QueryCurrentPlanRequest; toJSON(_: QueryCurrentPlanRequest): unknown; }; export declare const QueryCurrentPlanResponse: { encode(message: QueryCurrentPlanResponse, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): QueryCurrentPlanResponse; fromJSON(object: any): QueryCurrentPlanResponse; fromPartial(object: DeepPartial): QueryCurrentPlanResponse; toJSON(message: QueryCurrentPlanResponse): unknown; }; export declare const QueryAppliedPlanRequest: { encode(message: QueryAppliedPlanRequest, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): QueryAppliedPlanRequest; fromJSON(object: any): QueryAppliedPlanRequest; fromPartial(object: DeepPartial): QueryAppliedPlanRequest; toJSON(message: QueryAppliedPlanRequest): unknown; }; export declare const QueryAppliedPlanResponse: { encode(message: QueryAppliedPlanResponse, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): QueryAppliedPlanResponse; fromJSON(object: any): QueryAppliedPlanResponse; fromPartial(object: DeepPartial): QueryAppliedPlanResponse; toJSON(message: QueryAppliedPlanResponse): unknown; }; declare type Builtin = Date | Function | Uint8Array | string | number | undefined; export declare type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export {};