/// import CtrlManager from './CtrlManager'; import type { Server as HttpServer } from 'http'; import type { Ctrl } from './HttpRFC'; export declare class Server { host: string; port: number; n_http: HttpServer; c_manager: CtrlManager; constructor(); private _watch_exit; private _req_hander; add_controller: (ctrl: Ctrl) => void; close: () => Promise; listen: (host: string, port?: number | undefined) => void; }