1 | import { InjectionToken } from '@angular/core';
|
2 | import { Selector } from '@ngrx/store';
|
3 | import { RouterReducerState } from './reducer';
|
4 | import { BaseRouterStoreState, RouterStateSerializer } from './serializers/base';
|
5 | import { SerializedRouterStateSnapshot } from './serializers/full_serializer';
|
6 | export declare type StateKeyOrSelector<T extends BaseRouterStoreState = SerializedRouterStateSnapshot> = string | Selector<any, RouterReducerState<T>>;
|
7 | export declare enum NavigationActionTiming {
|
8 | PreActivation = 1,
|
9 | PostActivation = 2
|
10 | }
|
11 | export declare const DEFAULT_ROUTER_FEATURENAME = "router";
|
12 | export declare const _ROUTER_CONFIG: InjectionToken<unknown>;
|
13 | export declare const ROUTER_CONFIG: InjectionToken<unknown>;
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | export declare const enum RouterState {
|
19 | Full = 0,
|
20 | Minimal = 1
|
21 | }
|
22 | export declare function _createRouterConfig(config: StoreRouterConfig): StoreRouterConfig;
|
23 | export interface StoreRouterConfig<T extends BaseRouterStoreState = SerializedRouterStateSnapshot> {
|
24 | stateKey?: StateKeyOrSelector<T>;
|
25 | serializer?: new (...args: any[]) => RouterStateSerializer;
|
26 | |
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 | navigationActionTiming?: NavigationActionTiming;
|
34 | |
35 |
|
36 |
|
37 |
|
38 |
|
39 | routerState?: RouterState;
|
40 | }
|