1 | import { ComponentInstruction } from '../instruction';
|
2 | import { RouteDefinition } from '../route_config/route_config_impl';
|
3 | import { Url } from '../url_parser';
|
4 | import { AbstractRule, RouteMatch, RouteRule } from './rules';
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | export declare class RuleSet {
|
11 | rulesByName: Map<string, RouteRule>;
|
12 | auxRulesByName: Map<string, RouteRule>;
|
13 | auxRulesByPath: Map<string, RouteRule>;
|
14 | rules: AbstractRule[];
|
15 | defaultRule: RouteRule;
|
16 | |
17 |
|
18 |
|
19 |
|
20 | config(config: RouteDefinition): boolean;
|
21 | |
22 |
|
23 |
|
24 | recognize(urlParse: Url): Promise<RouteMatch>[];
|
25 | recognizeAuxiliary(urlParse: Url): Promise<RouteMatch>[];
|
26 | hasRoute(name: string): boolean;
|
27 | componentLoaded(name: string): boolean;
|
28 | loadComponent(name: string): Promise<any>;
|
29 | generate(name: string, params: any): ComponentInstruction;
|
30 | generateAuxiliary(name: string, params: any): ComponentInstruction;
|
31 | private _assertNoHashCollision(hash, path);
|
32 | private _getRoutePath(config);
|
33 | }
|