import { JSONRpcMethods } from './JSONRpcMethods.js'; export interface JSONRpc2ResultData { } export declare enum JSONRPCErrorCode { PARSE_ERROR = -32700, INVALID_REQUEST = -32600, METHOD_NOT_FOUND = -32601, INVALID_PARAMS = -32602, INTERNAL_ERROR = -32603, SERVER_ERROR = -32000, APPLICATION_ERROR = -32099, SYSTEM_ERROR = -32098, TRANSPORT_ERROR = -32097, GENERIC_ERROR = -32096 } export declare enum JSONRPCErrorHttpCodes { PARSE_ERROR = 500, INVALID_REQUEST = 400, METHOD_NOT_FOUND = 404, INVALID_PARAMS = 400, INTERNAL_ERROR = 500, SERVER_ERROR = 500, APPLICATION_ERROR = 500, SYSTEM_ERROR = 500, TRANSPORT_ERROR = 500, GENERIC_ERROR = 500 } export interface JSONRpcErrorData { } export interface JSONRpcResultError { readonly code: JSONRPCErrorCode; readonly message: string; readonly data?: JSONRpcErrorData; } interface JSONRpc2ResultBase { readonly jsonrpc: '2.0'; readonly id: number | string | null; readonly result?: JSONRpc2ResultData; readonly error?: JSONRpcResultError; } export interface JSONRpc2ResponseResult extends JSONRpc2ResultBase { readonly result: JSONRpc2ResultData; } export interface JSONRpc2ResponseError extends JSONRpc2ResultBase { readonly error: JSONRpcResultError; } export type JsonRpcError = JSONRpc2ResponseError; export type JsonRpcResult = JSONRpc2ResponseResult; export type JSONRpc2Result = JSONRpc2ResponseResult | JSONRpc2ResponseError; export type JsonRpcCallResult = (JsonRpcResult | JsonRpcError)[]; export {};