import * as http from 'node:http';
export interface options {
fetch: (req: Request, ...args: any) => Response | Promise<Response>;
port: number;
}
export declare function serve(options: options): http.Server<typeof http.IncomingMessage, typeof http.ServerResponse>;