import grpcWeb from "../../protogen/proto/api/api_grpc_web_pb"; import { ClientReadableStream, IEstimateActionGasConsumptionRequest, IEstimateActionGasConsumptionResponse, IEstimateGasForActionRequest, IEstimateGasForActionResponse, IGetAccountRequest, IGetAccountResponse, IGetActionsRequest, IGetActionsResponse, IGetBlockMetasRequest, IGetBlockMetasResponse, IGetChainMetaRequest, IGetChainMetaResponse, IGetEpochMetaRequest, IGetEpochMetaResponse, IGetLogsRequest, IGetLogsResponse, IGetReceiptByActionRequest, IGetReceiptByActionResponse, IGetServerMetaRequest, IGetServerMetaResponse, IReadContractRequest, IReadContractResponse, IReadStateRequest, IReadStateResponse, IRpcMethod, ISendActionRequest, ISendActionResponse, IStreamBlocksRequest, IStreamBlocksResponse, IStreamLogsRequest, IStreamLogsResponse, ISuggestGasPriceRequest, ISuggestGasPriceResponse } from "./types"; declare type Opts = { timeout?: number; apiToken?: string; }; export default class RpcMethod implements IRpcMethod { private chainID; client: grpcWeb.APIServicePromiseClient; timeout: number; apiToken?: string; constructor(hostname: string, chainID: number, options?: Opts); getChainID(): number; setProvider(provider: string | IRpcMethod, chainID?: number): void; getDeadline(): string; private getMetadata; getAccount(req: IGetAccountRequest): Promise; getBlockMetas(req: IGetBlockMetasRequest): Promise; getChainMeta(req: IGetChainMetaRequest): Promise; getServerMeta(req: IGetServerMetaRequest): Promise; getActions(req: IGetActionsRequest): Promise; suggestGasPrice(req: ISuggestGasPriceRequest): Promise; estimateGasForAction(req: IEstimateGasForActionRequest): Promise; readState(req: IReadStateRequest): Promise; readContract(req: IReadContractRequest): Promise; sendAction(req: ISendActionRequest): Promise; getReceiptByAction(req: IGetReceiptByActionRequest): Promise; getEpochMeta(req: IGetEpochMetaRequest): Promise; getLogs(req: IGetLogsRequest): Promise; estimateActionGasConsumption(req: IEstimateActionGasConsumptionRequest): Promise; streamBlocks(req: IStreamBlocksRequest): ClientReadableStream; streamLogs(req: IStreamLogsRequest): ClientReadableStream; } export {};