import type { IncomingMessage, ServerResponse } from 'http';
export declare const createServerHandler: ({ port, hostname, dir, dev, minimalMode, keepAliveTimeout, }: {
    port: number;
    hostname: string;
    dir: string;
    dev?: boolean | undefined;
    minimalMode: boolean;
    keepAliveTimeout?: number | undefined;
}) => Promise<(req: IncomingMessage, res: ServerResponse) => Promise<void>>;
