import { type IContainer, type IRegistry, type Key, type Resolved } from '@aurelia/kernel'; export type TaskSlot = 'creating' | 'hydrating' | 'hydrated' | 'activating' | 'activated' | 'deactivating' | 'deactivated'; export declare const IAppTask: import("@aurelia/kernel").InterfaceSymbol; export interface IAppTask { readonly slot: TaskSlot; register(c: IContainer): IContainer; run(): void | Promise; } export declare const AppTask: Readonly<{ /** * Returns a task that will run just before the root component is created by DI */ creating: { (callback: AppTaskCallbackNoArg): IRegistry; (key: T, callback: AppTaskCallback): IRegistry; }; /** * Returns a task that will run after instantiating the root controller, * but before compiling its view (thus means before instantiating the child elements inside it) * * good chance for a router to do some initial work, or initial routing related in general */ hydrating: { (callback: AppTaskCallbackNoArg): IRegistry; (key: T, callback: AppTaskCallback): IRegistry; }; /** * Return a task that will run after the hydration of the root controller, * but before hydrating the child element inside * * good chance for a router to do some initial work, or initial routing related in general */ hydrated: { (callback: AppTaskCallbackNoArg): IRegistry; (key: T, callback: AppTaskCallback): IRegistry; }; /** * Return a task that will run right before the root component is activated. * In this phase, scope hierarchy is formed, and bindings are getting bound */ activating: { (callback: AppTaskCallbackNoArg): IRegistry; (key: T, callback: AppTaskCallback): IRegistry; }; /** * Return a task that will run right after the root component is activated - the app is now running */ activated: { (callback: AppTaskCallbackNoArg): IRegistry; (key: T, callback: AppTaskCallback): IRegistry; }; /** * Return a task that will runs right before the root component is deactivated. * In this phase, scope hierarchy is unlinked, and bindings are getting unbound */ deactivating: { (callback: AppTaskCallbackNoArg): IRegistry; (key: T, callback: AppTaskCallback): IRegistry; }; /** * Return a task that will run right after the root component is deactivated */ deactivated: { (callback: AppTaskCallbackNoArg): IRegistry; (key: T, callback: AppTaskCallback): IRegistry; }; }>; export type AppTaskCallbackNoArg = () => unknown; export type AppTaskCallback = (arg: Resolved) => unknown; //# sourceMappingURL=app-task.d.ts.map