import { JSONRpcMethods } from './JSONRpcMethods.js'; import { JSONRpcParams } from './JSONRpcParams.js'; export type JSONRpcId = string | number | null; export type JSONRpc2RequestParams = JSONRpcParams | Array; export interface JSONRpc2Request { readonly jsonrpc: '2.0'; method: T; readonly params: JSONRpc2RequestParams; readonly id?: JSONRpcId; } export type JsonRpcPayload = JSONRpc2Request;