import type { IRpcRequest, IJsonRpcMessageTypeMap, IEngineStatus, IQrcClientEvents, ILogger, IStartOptions } from '../index.interface.js'; import { EventEmitter } from '../event/EventEmitter.js'; /** * JSON-RPC client that owns the core connection: its factory builds and opens * the socket for the chosen mode, so callers above never touch the connection. * It reads the connection's `message` stream rather than a socket, so socket * swaps and reconnections are invisible here and never require re-subscription. */ export declare class QrcClient extends EventEmitter { private readonly logger; private readonly connection; private readonly apiKey; private readonly timeout; private pendingRpcs; private connected; private constructor(); static createQrcClient: (logger: ILogger, options: IStartOptions) => Promise; private handleMessage; private handleDisconnected; private handleReconnected; private handleError; private handleClosed; private handleEngineStatus; get engineStatus(): IEngineStatus; send: (data: object) => void; createJSONRPCMessage: [0]>(method: T, params: U, id: string) => IRpcRequest; sendRpc: [0]>(method: T, params: U) => Promise>; private cancelRpcs; close: () => void; } //# sourceMappingURL=QrcClient.d.ts.map