/// import * as http from 'http'; import * as https from 'https'; import { BaseModule, ModuleConfig } from '@modern-mean/server-base-module'; import { ExpressModule } from './express'; export interface ServerOptions { host?: string; http?: { port?: string; }; https?: { enable?: boolean; port?: string; options?: https.ServerOptions; }; } export interface ServerModuleInterface { listen(): Promise<[http.Server, https.Server | void]>; destroy(): Promise<[void, void]>; getHttpServer(): http.Server; getHttpsServer(): https.Server; } export declare class ServerModule extends BaseModule implements ServerModuleInterface { protected express: ExpressModule; protected httpServer: http.Server; protected httpsServer: https.Server; protected config: ModuleConfig; constructor(...args: any[]); start(): Promise<[http.Server, https.Server | void]>; listen(): Promise<[http.Server, https.Server | void]>; destroy(): Promise<[void | Error, void | Error]>; getHttpServer(): http.Server; getHttpsServer(): https.Server; } export declare function ServerDefaultConfig(): ModuleConfig; export declare function ServerLoggerConfig(): ModuleConfig;