import { Application } from './app'; import http from 'http'; import https from 'https'; interface HttpsCredentials { key: string; cert: string; } interface ServerConstructOptions { host: string; port: number; https: boolean; credentials: HttpsCredentials; } export declare class Server { constructor(AppClass: object, options: ServerConstructOptions); async start(): void; readonly host: string; readonly port: number; onError(error): void; onListening(): void; private _host: string; private _port: number; private _https: boolean; private _credentials: HttpsCredentials; private _app: Application; private _server: http.Server | https.Server; }