import type { IncomingMessage } from "node:http";
import type { Duplex } from "node:stream";
import type { RenderQueue } from "./render-queue/index.js";
export declare class RenderWsRouter {
    private readonly queue;
    private wss;
    constructor(queue: RenderQueue);
    private handleConnection;
    /**
     * Handle an HTTP upgrade. Returns true if this router accepted the request
     * (meaning the upgrade is now ours and the caller should NOT fall through
     * to other handlers). Returns false for any non-matching URL — the caller
     * is responsible for the next handler / socket destroy.
     */
    handleUpgrade(req: IncomingMessage, socket: Duplex, head: Buffer): boolean;
    close(): void;
}
//# sourceMappingURL=render-ws.d.ts.map