import { JsonRpcRequest, JsonRpcSuccessResponse } from "@cosmjs/json-rpc"; import { RpcClient } from "./rpcclient"; export interface HttpEndpoint { /** * The URL of the HTTP endpoint. * * For POST APIs like Tendermint RPC in CosmJS, * this is without the method specific paths (e.g. https://cosmoshub-4--rpc--full.datahub.figment.io/) */ readonly url: string; /** * HTTP headers that are sent with every request, such as authorization information. */ readonly headers: Record; } export declare class HttpClient implements RpcClient { protected readonly url: string; protected readonly headers: Record | undefined; protected readonly timeout: number | undefined; constructor(endpoint: string | HttpEndpoint, timeout?: number); disconnect(): void; execute(request: JsonRpcRequest): Promise; }