import { BinaryReader, BinaryWriter } from "../../../../binary"; import { TxRpc } from "../../../../types"; export declare const protobufPackage = "cosmos.base.reflection.v1beta1"; /** ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC. */ export interface ListAllInterfacesRequest { } export interface ListAllInterfacesRequestProtoMsg { typeUrl: "/cosmos.base.reflection.v1beta1.ListAllInterfacesRequest"; value: Uint8Array; } /** ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC. */ export interface ListAllInterfacesRequestAmino { } export interface ListAllInterfacesRequestAminoMsg { type: "cosmos-sdk/ListAllInterfacesRequest"; value: ListAllInterfacesRequestAmino; } /** ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC. */ export interface ListAllInterfacesResponse { /** interface_names is an array of all the registered interfaces. */ interfaceNames: string[]; } export interface ListAllInterfacesResponseProtoMsg { typeUrl: "/cosmos.base.reflection.v1beta1.ListAllInterfacesResponse"; value: Uint8Array; } /** ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC. */ export interface ListAllInterfacesResponseAmino { /** interface_names is an array of all the registered interfaces. */ interface_names?: string[]; } export interface ListAllInterfacesResponseAminoMsg { type: "cosmos-sdk/ListAllInterfacesResponse"; value: ListAllInterfacesResponseAmino; } /** * ListImplementationsRequest is the request type of the ListImplementations * RPC. */ export interface ListImplementationsRequest { /** interface_name defines the interface to query the implementations for. */ interfaceName: string; } export interface ListImplementationsRequestProtoMsg { typeUrl: "/cosmos.base.reflection.v1beta1.ListImplementationsRequest"; value: Uint8Array; } /** * ListImplementationsRequest is the request type of the ListImplementations * RPC. */ export interface ListImplementationsRequestAmino { /** interface_name defines the interface to query the implementations for. */ interface_name?: string; } export interface ListImplementationsRequestAminoMsg { type: "cosmos-sdk/ListImplementationsRequest"; value: ListImplementationsRequestAmino; } /** * ListImplementationsResponse is the response type of the ListImplementations * RPC. */ export interface ListImplementationsResponse { implementationMessageNames: string[]; } export interface ListImplementationsResponseProtoMsg { typeUrl: "/cosmos.base.reflection.v1beta1.ListImplementationsResponse"; value: Uint8Array; } /** * ListImplementationsResponse is the response type of the ListImplementations * RPC. */ export interface ListImplementationsResponseAmino { implementation_message_names?: string[]; } export interface ListImplementationsResponseAminoMsg { type: "cosmos-sdk/ListImplementationsResponse"; value: ListImplementationsResponseAmino; } export declare const ListAllInterfacesRequest: { typeUrl: string; aminoType: string; is(o: any): o is ListAllInterfacesRequest; isAmino(o: any): o is ListAllInterfacesRequestAmino; encode(_: ListAllInterfacesRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): ListAllInterfacesRequest; fromJSON(_: any): ListAllInterfacesRequest; toJSON(_: ListAllInterfacesRequest): unknown; fromPartial(_: Partial): ListAllInterfacesRequest; fromAmino(_: ListAllInterfacesRequestAmino): ListAllInterfacesRequest; toAmino(_: ListAllInterfacesRequest): ListAllInterfacesRequestAmino; fromAminoMsg(object: ListAllInterfacesRequestAminoMsg): ListAllInterfacesRequest; toAminoMsg(message: ListAllInterfacesRequest): ListAllInterfacesRequestAminoMsg; fromProtoMsg(message: ListAllInterfacesRequestProtoMsg): ListAllInterfacesRequest; toProto(message: ListAllInterfacesRequest): Uint8Array; toProtoMsg(message: ListAllInterfacesRequest): ListAllInterfacesRequestProtoMsg; }; export declare const ListAllInterfacesResponse: { typeUrl: string; aminoType: string; is(o: any): o is ListAllInterfacesResponse; isAmino(o: any): o is ListAllInterfacesResponseAmino; encode(message: ListAllInterfacesResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): ListAllInterfacesResponse; fromJSON(object: any): ListAllInterfacesResponse; toJSON(message: ListAllInterfacesResponse): unknown; fromPartial(object: Partial): ListAllInterfacesResponse; fromAmino(object: ListAllInterfacesResponseAmino): ListAllInterfacesResponse; toAmino(message: ListAllInterfacesResponse): ListAllInterfacesResponseAmino; fromAminoMsg(object: ListAllInterfacesResponseAminoMsg): ListAllInterfacesResponse; toAminoMsg(message: ListAllInterfacesResponse): ListAllInterfacesResponseAminoMsg; fromProtoMsg(message: ListAllInterfacesResponseProtoMsg): ListAllInterfacesResponse; toProto(message: ListAllInterfacesResponse): Uint8Array; toProtoMsg(message: ListAllInterfacesResponse): ListAllInterfacesResponseProtoMsg; }; export declare const ListImplementationsRequest: { typeUrl: string; aminoType: string; is(o: any): o is ListImplementationsRequest; isAmino(o: any): o is ListImplementationsRequestAmino; encode(message: ListImplementationsRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): ListImplementationsRequest; fromJSON(object: any): ListImplementationsRequest; toJSON(message: ListImplementationsRequest): unknown; fromPartial(object: Partial): ListImplementationsRequest; fromAmino(object: ListImplementationsRequestAmino): ListImplementationsRequest; toAmino(message: ListImplementationsRequest): ListImplementationsRequestAmino; fromAminoMsg(object: ListImplementationsRequestAminoMsg): ListImplementationsRequest; toAminoMsg(message: ListImplementationsRequest): ListImplementationsRequestAminoMsg; fromProtoMsg(message: ListImplementationsRequestProtoMsg): ListImplementationsRequest; toProto(message: ListImplementationsRequest): Uint8Array; toProtoMsg(message: ListImplementationsRequest): ListImplementationsRequestProtoMsg; }; export declare const ListImplementationsResponse: { typeUrl: string; aminoType: string; is(o: any): o is ListImplementationsResponse; isAmino(o: any): o is ListImplementationsResponseAmino; encode(message: ListImplementationsResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): ListImplementationsResponse; fromJSON(object: any): ListImplementationsResponse; toJSON(message: ListImplementationsResponse): unknown; fromPartial(object: Partial): ListImplementationsResponse; fromAmino(object: ListImplementationsResponseAmino): ListImplementationsResponse; toAmino(message: ListImplementationsResponse): ListImplementationsResponseAmino; fromAminoMsg(object: ListImplementationsResponseAminoMsg): ListImplementationsResponse; toAminoMsg(message: ListImplementationsResponse): ListImplementationsResponseAminoMsg; fromProtoMsg(message: ListImplementationsResponseProtoMsg): ListImplementationsResponse; toProto(message: ListImplementationsResponse): Uint8Array; toProtoMsg(message: ListImplementationsResponse): ListImplementationsResponseProtoMsg; }; /** 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; }