/// import cors from 'cors'; import http from 'http'; export declare type HttpHandler = (req: http.IncomingMessage, res: http.ServerResponse) => void; export interface HttpHandlerOptions { cors?: cors.CorsOptions; } export interface HttpServerOptions { silent: boolean; serve(fn: HttpHandler): http.Server; } export declare type Func = (...args: any[]) => any;