import { Ctrl, HttpRes } from './HttpRFC'; import type { ServerResponse } from "http"; import type { RouteConf, HttpReqPartial, HttpReqParams } from "./HttpRFC"; declare class CtrlManager { ctrls: Record; constructor(); add: (ctrl: Ctrl) => void; reload: (ctrl_n: Ctrl) => void; ex_url_path: (s: string) => string[]; ctrl_match_route: (route_paths: string[], req_paths: string[]) => HttpReqParams | null; ctrl_get_routes: (ctrl: Ctrl) => string[]; route_conf_find: (ctrl: Ctrl, req: HttpReqPartial) => RouteConf | null; route_before: (req: HttpReqPartial, route_conf: RouteConf) => Promise; route_after: (route_conf: RouteConf, data: any) => HttpRes | null; route_conf_verify: (req: HttpReqPartial, route_conf?: RouteConf | null | undefined) => RouteConf; process_route: (req: HttpReqPartial, res: ServerResponse) => Promise; } export default CtrlManager;