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 | undefined): ListAllInterfacesRequest; fromJSON(_: any): ListAllInterfacesRequest; toJSON(_: ListAllInterfacesRequest): unknown; create]: never; }>(base?: I | undefined): ListAllInterfacesRequest; fromPartial]: never; }>(_: I_1): ListAllInterfacesRequest; }; export declare const ListAllInterfacesResponse: { encode(message: ListAllInterfacesResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ListAllInterfacesResponse; fromJSON(object: any): ListAllInterfacesResponse; toJSON(message: ListAllInterfacesResponse): unknown; create]: never; }) | undefined; } & { [K_1 in Exclude]: never; }>(base?: I | undefined): ListAllInterfacesResponse; fromPartial]: never; }) | undefined; } & { [K_3 in Exclude]: never; }>(object: I_1): ListAllInterfacesResponse; }; export declare const ListImplementationsRequest: { encode(message: ListImplementationsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ListImplementationsRequest; fromJSON(object: any): ListImplementationsRequest; toJSON(message: ListImplementationsRequest): unknown; create]: never; }>(base?: I | undefined): ListImplementationsRequest; fromPartial]: never; }>(object: I_1): ListImplementationsRequest; }; export declare const ListImplementationsResponse: { encode(message: ListImplementationsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ListImplementationsResponse; fromJSON(object: any): ListImplementationsResponse; toJSON(message: ListImplementationsResponse): unknown; create]: never; }) | undefined; } & { [K_1 in Exclude]: never; }>(base?: I | undefined): ListImplementationsResponse; fromPartial]: never; }) | undefined; } & { [K_3 in Exclude]: never; }>(object: I_1): 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; } declare 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; } declare var tsProtoGlobalThis: any; declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export declare type DeepPartial = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; declare type KeysOfUnion = T extends T ? keyof T : never; export declare type Exact = P extends Builtin ? P : P & { [K in keyof P]: Exact; } & { [K in Exclude>]: never; }; export declare class GrpcWebError extends tsProtoGlobalThis.Error { code: grpc.Code; metadata: grpc.Metadata; constructor(message: string, code: grpc.Code, metadata: grpc.Metadata); } export {};