import { JsonRpcPayload, JsonRpcResponse } from '@theqrl/web3-types'; import { BaseWeb3Error } from '../web3_error_base.js'; export declare class ResponseError extends BaseWeb3Error { code: number; data?: ErrorType | ErrorType[]; request?: JsonRpcPayload; constructor(response: JsonRpcResponse, message?: string, request?: JsonRpcPayload); toJSON(): { data: ErrorType | ErrorType[] | undefined; request: JsonRpcPayload | undefined; name: string; code: number; message: string; innerError: Error | Error[] | undefined; }; } /** * Thrown when a response exceeds the `maxResponseBytes` bound. * * This deliberately does not extend {@link ResponseError}: there is no JSON-RPC error * payload to carry, because the response was refused before (or instead of) being * parsed. `maxResponseBytes` is the configured limit; `receivedBytes` is the declared * (`content-length`) or observed decoded size when known. */ export declare class ResponseTooLargeError extends BaseWeb3Error { maxResponseBytes: number; receivedBytes?: number | undefined; code: number; constructor(maxResponseBytes: number, receivedBytes?: number | undefined); toJSON(): { maxResponseBytes: number; receivedBytes: number | undefined; name: string; code: number; message: string; innerError: Error | Error[] | undefined; }; } export declare class InvalidResponseError extends ResponseError { constructor(result: JsonRpcResponse, request?: JsonRpcPayload); }