import { grpc } from "@improbable-eng/grpc-web"; import Long from "long"; import _m0 from "protobufjs/minimal"; export declare const protobufPackage = "cosmos.base.node.v1beta1"; /** ConfigRequest defines the request structure for the Config gRPC query. */ export interface ConfigRequest { } /** ConfigResponse defines the response structure for the Config gRPC query. */ export interface ConfigResponse { minimumGasPrice: string; pruningKeepRecent: string; pruningInterval: string; haltHeight: Long; } /** StateRequest defines the request structure for the status of a node. */ export interface StatusRequest { } /** StateResponse defines the response structure for the status of a node. */ export interface StatusResponse { /** earliest block height available in the store */ earliestStoreHeight: Long; /** current block height */ height: Long; /** block height timestamp */ timestamp: Date | undefined; /** app hash of the current block */ appHash: Uint8Array; /** validator hash provided by the consensus header */ validatorHash: Uint8Array; } export declare const ConfigRequest: { encode(_: ConfigRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ConfigRequest; fromJSON(_: any): ConfigRequest; toJSON(_: ConfigRequest): unknown; create(base?: DeepPartial): ConfigRequest; fromPartial(_: DeepPartial): ConfigRequest; }; export declare const ConfigResponse: { encode(message: ConfigResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ConfigResponse; fromJSON(object: any): ConfigResponse; toJSON(message: ConfigResponse): unknown; create(base?: DeepPartial): ConfigResponse; fromPartial(object: DeepPartial): ConfigResponse; }; export declare const StatusRequest: { encode(_: StatusRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): StatusRequest; fromJSON(_: any): StatusRequest; toJSON(_: StatusRequest): unknown; create(base?: DeepPartial): StatusRequest; fromPartial(_: DeepPartial): StatusRequest; }; export declare const StatusResponse: { encode(message: StatusResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): StatusResponse; fromJSON(object: any): StatusResponse; toJSON(message: StatusResponse): unknown; create(base?: DeepPartial): StatusResponse; fromPartial(object: DeepPartial): StatusResponse; }; /** Service defines the gRPC querier service for node related queries. */ export interface Service { /** Config queries for the operator configuration. */ Config(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** Status queries for the node status. */ Status(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare class ServiceClientImpl implements Service { private readonly rpc; constructor(rpc: Rpc); Config(request: DeepPartial, metadata?: grpc.Metadata): Promise; Status(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare const ServiceDesc: { serviceName: string; }; export declare const ServiceConfigDesc: UnaryMethodDefinitionish; export declare const ServiceStatusDesc: 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 {};