/** * ProviderErrors should take priority over RpcErrorCodes * https://eips.ethereum.org/EIPS/eip-1193#provider-errors * https://eips.ethereum.org/EIPS/eip-1474#error-codes */ export declare enum ProviderErrorCode { USER_REJECTED_REQUEST = 4001, UNAUTHORIZED = 4100, UNSUPPORTED_METHOD = 4200, DISCONNECTED = 4900 } export declare enum RpcErrorCode { RPC_SERVER_ERROR = -32000, TRANSACTION_REVERTED = -32015, INVALID_REQUEST = -32600, METHOD_NOT_FOUND = -32601, INVALID_PARAMS = -32602, INTERNAL_ERROR = -32603, PARSE_ERROR = -32700, TRANSACTION_REJECTED = -32003 } export declare class JsonRpcError extends Error { readonly message: string; readonly code: ProviderErrorCode | RpcErrorCode; constructor(code: ProviderErrorCode | RpcErrorCode, message: string); }