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;
/**
 * Attach the IPC ownership protocol and keep committed sockets addressable
 * by late cancellation.
 */
export declare function attachSocketWorkerProcess(server: Server, input: {
    generation: number;
    version: string;
    processInstanceId?: string;
    onActivated?: () => void;
    onDrained?: () => void;
}): SocketWorkerRuntime;
