import { Context } from "../Context"; import { Event } from "../../eventDispatcher/event/Event"; /** * Context lifecycle event represents different stages in Context life */ export declare class ContextLifecycleEvent extends Event { readonly context: Context; /** * Dispatched as context is just about to be initialized */ static readonly PRE_INITIALIZE: unique symbol; /** * Dispatched as pre initialize is done and actual initialization of Context injector and modules will take place */ static readonly INITIALIZE: unique symbol; /** * Dispatched as Context initialization is complete */ static readonly POST_INITIALIZE: unique symbol; /** * Dispatched as Context destroy is just about to begin. */ static readonly PRE_DESTROY: unique symbol; /** * Dispatched as actual destroy of Context is performed. */ static readonly DESTROY: unique symbol; /** * Dispatched as destroy of Context is complete */ static readonly POST_DESTROY: unique symbol; /** * Create new instance * @param type Event type * @param context Context instance that originated event */ constructor(type: Symbol, context: Context); }