import http from 'http'; import { Application } from 'express'; import { Container } from 'inversify'; import { DataSource } from 'typeorm'; import { ContextualLogger } from "../../../logger/src"; import { IScheduler } from '../scheduler/scheduler.service'; export type ServerOptions = { port: number; routePrefix?: string; }; export declare const BRIDGE_SDK_EXPRESS_APPLICATION: unique symbol; export declare class ServerService { protected container: Container; protected dataSource: DataSource; protected logger: ContextualLogger; protected expressApp: Application; protected scheduler: IScheduler; protected httpServer: http.Server; constructor(container: Container, dataSource: DataSource, logger: ContextualLogger, expressApp: Application, scheduler: IScheduler); start(options: ServerOptions): Promise; protected createHttpServer(port: number, routePrefix: string): http.Server; stop(): Promise; /** * Returns internals that power users of the bridge can plug into and modify to suit their needs. * Modify returned values on your own responsibility. */ getExposedServices(): { dataSource: DataSource; }; }