import { EventEmitter } from "node:events"; /** * HttpServer uses a background worker thread to handle raw HTTP connections, * while the main thread invokes the user-provided handler and sends back the * response. */ export declare class HttpServer extends EventEmitter { #private; constructor(handler: any); listen(port: any, host: any): Promise; stop(): Promise; close(): Promise; }