import type { DesktopRemoteControlRuntime } from './desktop-runtime.js';
export interface RemoteControlWebSocketServerOptions {
    host?: string;
    port: number;
}
export declare class RemoteControlWebSocketServer {
    private readonly runtime;
    private readonly host;
    private requestedPort;
    private httpServer?;
    private wsServer?;
    private activeSocket?;
    private unsubscribeActive?;
    constructor(runtime: DesktopRemoteControlRuntime, options: RemoteControlWebSocketServerOptions);
    get port(): number;
    start(): Promise<void>;
    close(): Promise<void>;
    private handleConnection;
    private unsubscribeCurrentSocket;
    private handleMessage;
    private send;
}
//# sourceMappingURL=ws-server.d.ts.map