import { BaseStartupTask } from './'; import { ModuleInfo } from '../module'; /** * BuildGlobalFiltersTask stage builds the routing.globalFilters list for each module. * * Global filters are inherited from the ancestors of a module as well as any * explicitly set on the module. */ export declare class BuildGlobalFiltersTask extends BaseStartupTask { name: string; execute(mod: ModuleInfo): Promise; } /** * BuildRouteFiltersTask populates the routes from the module's configuration. * * Note: The globalFilters list is added here to each route's list of filters. */ export declare class BuildRouteFiltersTask extends BaseStartupTask { name: string; execute(mod: ModuleInfo): Promise; } /** * BuildAvailableMiddlewareTask stage builds a map of middleware available. * * Modules can only use its own available middleware or one from an ancestor. */ export declare class BuildAvailableMiddlewareTask extends BaseStartupTask { name: string; execute(mod: ModuleInfo): Promise; } /** * BuildEnabledMiddlewareTask resolves the list of middleware specified in a module * to the respective middleware handlers. * * This fails if any of the middleware are not found. */ export declare class BuildEnabledMiddlewareTask extends BaseStartupTask { name: string; execute(mod: ModuleInfo): Promise; } /** * ConfigureRoutesTask sets up the routing for a module. * * This is meant to be the final step in the routing process and involes * the following steps (in order): * * 1. install middleware (express) * 2. install globalFilters * 3. install routes * 4. mount child module to parent module (child modules only). */ export declare class ConfigureRoutesTask extends BaseStartupTask { name: string; execute(mod: ModuleInfo): Promise; } /** * ConfigureFinalRoutesTask sets up the final routing for a module. * * This adds the error and 404 handlers. These must be added last to * ensure the other routes are actually triggered. */ export declare class ConfigureFinalRoutesTask extends BaseStartupTask { name: string; execute(mod: ModuleInfo): Promise; }