import * as jsonrpc from 'jsonrpc-lite'; declare type HttpHeaders = RequestInit; declare type HttpMethod = RequestInit['method']; declare type RequestOptions = { httpMethod?: HttpMethod; path?: string; }; declare type VersionParam = { version?: string; }; declare type RequestParams = VersionParam & jsonrpc.RpcParams; declare type JSONRpcRequestBody = { method: string; params: RequestParams; }; declare type SuccessObject = Omit & { result: T; }; declare type ErrorObject = Omit & { error: T; }; declare type ServerErrorObject = { code: number; data: any; message: string; }; export declare class HttpWithJSONRpc { private headers; private host; setHost(host: string): void; setHeaders(headers: HttpHeaders): void; protected request(body: JSONRpcRequestBody, options?: RequestOptions): Promise | ErrorObject>; } export {};