declare namespace Jymfony.Contracts.HttpServer { interface ListenOptions { port?: number; host?: string; path?: string; } export class HttpServerInterface { public static readonly definition: Newable; /** * Listen and handle connections. */ listen(opts?: ListenOptions): Promise; /** * Closes the server. */ close(): Promise; } }