import { LifeCycleObserver } from './lifecycle'; /** * Defines the requirements to implement a Server for LoopBack applications: * start() : Promise * stop() : Promise * It is recommended that each Server implementation creates its own child * Context, which inherits from the parent Application context. This way, * any Server-specific bindings will remain local to the Server instance, * and will avoid polluting its parent module scope. */ export interface Server extends LifeCycleObserver { /** * Tells whether the server is listening for connections or not */ readonly listening: boolean; }