import type { Server } from "node:http";
import type { SocketWorkerRuntime, SocketWorkerRuntimeOptions } from "../types/index.js";
/**
 * Adapts transferred TCP sockets to an HTTP server without opening another
 * listener. Active responses finish normally; idle keep-alive sockets close as
 * soon as draining begins.
 */
export declare function createSocketWorkerRuntime(server: Server, options?: SocketWorkerRuntimeOptions): SocketWorkerRuntime;
export declare function attachSocketWorkerProcess(server: Server, input: {
    generation: number;
    version: string;
    onActivated?: () => void;
    onDrained?: () => void;
}): SocketWorkerRuntime;
