/// import { Express } from 'express'; import { Server as HttpServer } from 'http'; export type Modifier = 'no-index' | 'single-page-application'; /** * Webdir wrapper for Express / HTTP Server */ export declare class Server { readonly dir: string; readonly host: string; readonly port: number; readonly modifier?: Modifier; /** * Express application */ readonly app: Express; /** * Low-level HTTP server */ readonly server: HttpServer; /** * Server initiation * @param dir path. Expected to be tested to actually be a directory * @param host IPv4 address, IPv6 address, domain name, or interface name * @param port numeric port for host * @param modifier special operation flags * @param startedCb 'listening' callback * @param errorCb 'error' callback * @param closeCb 'close' callback */ constructor(dir: string, host: string, port: number, modifier?: Modifier, startedCb?: () => void, errorCb?: (err: Error) => void, closeCb?: () => void); }