import { BaseError } from "./base.js"; //#region src/errors/rpc.d.ts /** * @enum {number} RpcErrorCode * @description JSON-RPC error codes * @see https://www.jsonrpc.org/specification#error_object */ declare enum RpcErrorCode { /** * Parse error Invalid JSON **/ PARSE_ERROR = -32700, /** * The JSON sent is not a valid Request object. **/ INVALID_REQUEST = -32600, /** * The method does not exist/is not available. **/ METHOD_NOT_FOUND = -32601, /** * Invalid method parameter(s). */ INVALID_PARAMS = -32602, /** * Internal JSON-RPC error. * This is a generic error, used when the server encounters an error in performing the request. **/ INTERNAL_ERROR = -32603, /** * user rejected/canceled the request */ USER_REJECTION = -32e3, /** * method is not supported for the address provided */ METHOD_NOT_SUPPORTED = -32001, /** * The client does not have permission to access the requested resource. */ ACCESS_DENIED = -32002, /** * Unknown generic errors */ MISC_ERROR = -1 } declare class UserRejectedRequestError extends BaseError { override code: number; constructor(message?: string); } declare class MethodNotSupportedRpcError extends BaseError { override code: number; constructor(method?: string); } declare class ParseError extends BaseError { override code: number; constructor(message?: string); } //#endregion export { MethodNotSupportedRpcError, ParseError, RpcErrorCode, UserRejectedRequestError }; //# sourceMappingURL=rpc.d.ts.map