import { BinaryReader, BinaryWriter } from "../../../../binary"; import { TxRpc } from "../../../../types"; import { QueryClient } from "@cosmjs/stargate"; export declare const protobufPackage = "cosmos.base.reflection.v1beta1"; /** ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC. */ export interface ListAllInterfacesRequest { } /** ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC. */ export interface ListAllInterfacesRequestSDKType { } /** ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC. */ export interface ListAllInterfacesResponse { /** interface_names is an array of all the registered interfaces. */ interfaceNames: string[]; } /** ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC. */ export interface ListAllInterfacesResponseSDKType { interface_names: 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; } /** * ListImplementationsRequest is the request type of the ListImplementations * RPC. */ export interface ListImplementationsRequestSDKType { interface_name: string; } /** * ListImplementationsResponse is the response type of the ListImplementations * RPC. */ export interface ListImplementationsResponse { implementationMessageNames: string[]; } /** * ListImplementationsResponse is the response type of the ListImplementations * RPC. */ export interface ListImplementationsResponseSDKType { implementation_message_names: string[]; } export declare const ListAllInterfacesRequest: { typeUrl: string; encode(_: ListAllInterfacesRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): ListAllInterfacesRequest; fromJSON(_: any): ListAllInterfacesRequest; toJSON(_: ListAllInterfacesRequest): unknown; fromPartial & {} & Record, never>>(_: I): ListAllInterfacesRequest; }; export declare const ListAllInterfacesResponse: { typeUrl: string; encode(message: ListAllInterfacesResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): ListAllInterfacesResponse; fromJSON(object: any): ListAllInterfacesResponse; toJSON(message: ListAllInterfacesResponse): unknown; fromPartial & { interfaceNames?: string[] & Record, never>; } & Record, never>>(object: I): ListAllInterfacesResponse; }; export declare const ListImplementationsRequest: { typeUrl: string; encode(message: ListImplementationsRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): ListImplementationsRequest; fromJSON(object: any): ListImplementationsRequest; toJSON(message: ListImplementationsRequest): unknown; fromPartial & { interfaceName?: string; } & Record, never>>(object: I): ListImplementationsRequest; }; export declare const ListImplementationsResponse: { typeUrl: string; encode(message: ListImplementationsResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): ListImplementationsResponse; fromJSON(object: any): ListImplementationsResponse; toJSON(message: ListImplementationsResponse): unknown; fromPartial & { implementationMessageNames?: string[] & Record, never>; } & Record, never>>(object: I): ListImplementationsResponse; }; /** ReflectionService defines a service for interface reflection. */ export interface ReflectionService { /** * ListAllInterfaces lists all the interfaces registered in the interface * registry. */ ListAllInterfaces(request?: ListAllInterfacesRequest): Promise; /** * ListImplementations list all the concrete types that implement a given * interface. */ ListImplementations(request: ListImplementationsRequest): Promise; } export declare class ReflectionServiceClientImpl implements ReflectionService { private readonly rpc; constructor(rpc: TxRpc); ListAllInterfaces(request?: ListAllInterfacesRequest): Promise; ListImplementations(request: ListImplementationsRequest): Promise; } export declare const createRpcQueryExtension: (base: QueryClient) => { ListAllInterfaces(request?: ListAllInterfacesRequest): Promise; ListImplementations(request: ListImplementationsRequest): Promise; };