import { grpc } from "@improbable-eng/grpc-web"; import Long from "long"; import _m0 from "protobufjs/minimal"; export declare const protobufPackage = "cosmos.base.reflection.v1beta1"; /** ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC. */ export interface ListAllInterfacesRequest { } /** ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC. */ export interface ListAllInterfacesResponse { /** interface_names is an array of all the registered interfaces. */ interfaceNames: string[]; } /** * ListImplementationsRequest is the request type of the ListImplementations * RPC. */ export interface ListImplementationsRequest { /** interface_name defines the interface to query the implementations for. */ interfaceName: string; } /** * ListImplementationsResponse is the response type of the ListImplementations * RPC. */ export interface ListImplementationsResponse { implementationMessageNames: string[]; } export declare const ListAllInterfacesRequest: { encode(_: ListAllInterfacesRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListAllInterfacesRequest; fromJSON(_: any): ListAllInterfacesRequest; toJSON(_: ListAllInterfacesRequest): unknown; create(base?: DeepPartial): ListAllInterfacesRequest; fromPartial(_: DeepPartial): ListAllInterfacesRequest; }; export declare const ListAllInterfacesResponse: { encode(message: ListAllInterfacesResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListAllInterfacesResponse; fromJSON(object: any): ListAllInterfacesResponse; toJSON(message: ListAllInterfacesResponse): unknown; create(base?: DeepPartial): ListAllInterfacesResponse; fromPartial(object: DeepPartial): ListAllInterfacesResponse; }; export declare const ListImplementationsRequest: { encode(message: ListImplementationsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListImplementationsRequest; fromJSON(object: any): ListImplementationsRequest; toJSON(message: ListImplementationsRequest): unknown; create(base?: DeepPartial): ListImplementationsRequest; fromPartial(object: DeepPartial): ListImplementationsRequest; }; export declare const ListImplementationsResponse: { encode(message: ListImplementationsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListImplementationsResponse; fromJSON(object: any): ListImplementationsResponse; toJSON(message: ListImplementationsResponse): unknown; create(base?: DeepPartial): ListImplementationsResponse; fromPartial(object: DeepPartial): ListImplementationsResponse; }; /** ReflectionService defines a service for interface reflection. */ export interface ReflectionService { /** * ListAllInterfaces lists all the interfaces registered in the interface * registry. */ ListAllInterfaces(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** * ListImplementations list all the concrete types that implement a given * interface. */ ListImplementations(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare class ReflectionServiceClientImpl implements ReflectionService { private readonly rpc; constructor(rpc: Rpc); ListAllInterfaces(request: DeepPartial, metadata?: grpc.Metadata): Promise; ListImplementations(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare const ReflectionServiceDesc: { serviceName: string; }; export declare const ReflectionServiceListAllInterfacesDesc: UnaryMethodDefinitionish; export declare const ReflectionServiceListImplementationsDesc: 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 {};