UNPKG

@angstone/monostone

Version:

monolitic event-sourced framework

43 lines (42 loc) 1.24 kB
import * as express from "express"; import { SystemTools } from "./tools"; import { IFeatureLoaded, IMonoModule, ICommand } from "./interfaces"; export declare class App { private static FREE_REST_TIME; monoModules: IMonoModule[]; features: IFeatureLoaded[]; /** * used when application stops */ stopped: boolean; stopping: boolean; /** * time in milliseconds gmt 0 since aplication was loaded */ timeLoaded: number | null; /** * time in milliseconds gmt 0 since aplication was started */ timeStarted: number; rethinkDbConnected: boolean; systemTools: typeof SystemTools; customFeaturesPath: string | undefined; /** * Creates the main application */ constructor(); connectStore(): Promise<void>; start(): Promise<void>; stop(): Promise<void>; sendCommand(command: ICommand, request?: any): Promise<any>; private config; private loadFeatures; /** * check if it does not have ongoing tasks * @return boolean */ isFree(): Promise<boolean>; getExpressPortal(): express.Express; } export declare const devWipeAll: (done: Function) => void; export declare const devWipeDb: (done: Function) => void;