/** * This file and any referenced files were automatically generated by @hyperweb/telescope@1.17.4 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ import { HttpEndpoint } from "@interchainjs/types"; import { BinaryReader, BinaryWriter } from "./binary"; import { Rpc } from "./helpers"; export interface QueryBuilderOptions { encode: (request: TReq, writer?: BinaryWriter) => BinaryWriter; decode: (input: BinaryReader | Uint8Array, length?: number) => TRes; service: string; method: string; } export declare function buildQuery(opts: QueryBuilderOptions): (client: EndpointOrRpc, request: TReq) => Promise; export interface Encoder { typeUrl: string; fromPartial: (data: any) => any; encode: (data: any) => Uint8Array; } export interface AminoConverter { typeUrl: string; aminoType: string; fromAmino: (data: any) => any; toAmino: (data: any) => any; } export type EndpointOrRpc = string | HttpEndpoint | Rpc;