import { WebSocketClient } from './websocket.js'; import 'ws'; interface JsonRpcRequest { jsonrpc: string; id: string; origin?: string; method: string; params: any; } interface JsonRpcResponse { jsonrpc: string; id: string; result: any; } declare function createJsonRpcRequest(method: string, params: any): JsonRpcRequest; declare function createEncryptedJsonRpcRequest(method: string, params: any, sharedSecret: Uint8Array, nonce: string): Promise; declare function getEncryptedJsonPayload(method: string, params: any, sharedSecret: Uint8Array, nonce: string): Promise<{ chunks: string[]; messageIds: string[]; }>; declare function sendEncryptedJsonRpcRequest(method: string, params: any, sharedSecret: Uint8Array, nonce: string, websocket: WebSocketClient): Promise<{ success: boolean; messageIds: string[]; }>; declare function createJsonRpcResponse(id: string, result: any): JsonRpcResponse; export { type JsonRpcRequest, type JsonRpcResponse, createEncryptedJsonRpcRequest, createJsonRpcRequest, createJsonRpcResponse, getEncryptedJsonPayload, sendEncryptedJsonRpcRequest };