export declare class ProviderError extends Error { status?: number; body?: string; constructor(message: string, status?: number, body?: string); static fromResponse(res: Response, body?: string): ProviderError; } export interface ConnectionInfo { url: string; headers?: { [key: string]: string | number; }; } interface JsonRpcRequest { id: number; jsonrpc: string; method: string; params: object; } /** * Performs an HTTP request to an RPC endpoint with retries * @param url URL for the HTTP request * @param json Request body * @param headers HTTP headers to include with the request * @returns Promise Parsed JSON response from the HTTP request * @throws {ProviderError} On HTTP errors * @throws {TypedError} On max retries exceeded */ export declare function fetchJsonRpc(url: string, json: JsonRpcRequest, headers?: object): Promise; export {}; //# sourceMappingURL=fetch_json.d.ts.map