import { SimpleApplication } from '@dooboostore/simple-boot'; import { Router, RouterEventType } from '@dooboostore/core-web'; import { ConstructorType, OptionalType } from '@dooboostore/core'; import { SwcAppInterface } from './types'; import { SimConfig } from '@dooboostore/simple-boot'; export type SwcConfigType = { routeType: 'path' | 'hash' | 'element'; container?: symbol; otherInstanceSim?: Map | Function | SimConfig | symbol, any>; path?: string; window: Window; onEngineStarted?: (sp: SimpleApplication, app: SwcAppInterface) => Promise | void; onConnectedChildAfter?: (swcEl: HTMLElement) => void; onConnectedChildBefore?: (swcEl: HTMLElement) => void; onDisconnectedChildAfter?: (swcEl: HTMLElement) => void; onDisconnectedChildBefore?: (swcEl: HTMLElement) => void; onConnected?: (app: SwcAppInterface) => void; onDisconnected?: (app: SwcAppInterface) => void; ssr?: boolean; onStartedLazyDefineComponent?: ((w: Window) => Promise | void | string | any | CustomElementConstructor)[]; onChildrenConnectedDone?: (app: SwcAppInterface) => void; onChildrenRouteChanged?: (event: RouterEventType, app: SwcAppInterface) => void; childrenRouteChangedCheckIntervalTime?: number; childrenConnectedDoneCheckIntervalTime?: number; }; export type SwcAttributeConfigType = OptionalType; export declare class SwcAppEngine { private host; simpleApplication?: SimpleApplication; router?: Router; private routerSubscription?; private _config?; constructor(host: HTMLElement); get config(): SwcConfigType; connect(config: SwcConfigType): Promise; disconnect(): void; } //# sourceMappingURL=SwcAppEngine.d.ts.map