1 | import { Type } from '../facade/lang';
|
2 | import { RouteRegistry } from '../route_registry';
|
3 | import { RouteDefinition } from './route_config_decorator';
|
4 | /**
|
5 | * Given a JS Object that represents a route config, returns a corresponding Route, AsyncRoute,
|
6 | * AuxRoute or Redirect object.
|
7 | *
|
8 | * Also wraps an AsyncRoute's loader function to add the loaded component's route config to the
|
9 | * `RouteRegistry`.
|
10 | */
|
11 | export declare function normalizeRouteConfig(config: RouteDefinition, registry: RouteRegistry): RouteDefinition;
|
12 | export declare function assertComponentExists(component: Type, path: string): void;
|