import { BaseConnection, type SessionConfig, type FormatConfig } from "./BaseConnection.js"; import { type OutgoingSocketEvent, type IncomingSocketEvent } from "./events.js"; import type { OutputEventTarget, OutputListener } from "./output.js"; export declare class WebSocketConnection extends BaseConnection implements OutputEventTarget { private readonly socket; readonly conversationId: string; readonly inputFormat: FormatConfig; readonly outputFormat: FormatConfig; private outputListeners; private constructor(); static create(config: SessionConfig): Promise; close(): void; sendMessage(message: OutgoingSocketEvent): void; addListener(listener: OutputListener): void; removeListener(listener: OutputListener): void; protected handleMessage(parsedEvent: IncomingSocketEvent): void; } //# sourceMappingURL=WebSocketConnection.d.ts.map