import { ModuleManager } from './ModuleManager'; import { Event } from '../EventManager'; export interface ModuleInterface { onBootstrap?: (event?: Event) => void | Promise; getConfig?: (mode?: string) => { [key: string]: any; } | Promise<{ [key: string]: any; }>; getServerConfig?: () => { [key: string]: any; } | Promise<{ [key: string]: any; }>; getCliConfig?: () => { [key: string]: any; } | Promise<{ [key: string]: any; }>; init?: (moduleManager?: ModuleManager) => void; }