1 | import { InjectionToken, ModuleWithProviders, ErrorHandler } from '@angular/core';
|
2 | import { Router } from '@angular/router';
|
3 | import { RuntimeChecks, Selector, Store } from '@ngrx/store';
|
4 | import { RouterReducerState } from './reducer';
|
5 | import { RouterStateSerializer, BaseRouterStoreState } from './serializers/base';
|
6 | import { SerializedRouterStateSnapshot } from './serializers/default_serializer';
|
7 | import * as i0 from "@angular/core";
|
8 | export declare type StateKeyOrSelector<T extends BaseRouterStoreState = SerializedRouterStateSnapshot> = string | Selector<any, RouterReducerState<T>>;
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | export declare const enum RouterState {
|
14 | Full = 0,
|
15 | Minimal = 1
|
16 | }
|
17 | export interface StoreRouterConfig<T extends BaseRouterStoreState = SerializedRouterStateSnapshot> {
|
18 | stateKey?: StateKeyOrSelector<T>;
|
19 | serializer?: new (...args: any[]) => RouterStateSerializer;
|
20 | |
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 | navigationActionTiming?: NavigationActionTiming;
|
28 | |
29 |
|
30 |
|
31 |
|
32 |
|
33 | routerState?: RouterState;
|
34 | }
|
35 | export declare enum NavigationActionTiming {
|
36 | PreActivation = 1,
|
37 | PostActivation = 2
|
38 | }
|
39 | export declare const _ROUTER_CONFIG: InjectionToken<unknown>;
|
40 | export declare const ROUTER_CONFIG: InjectionToken<unknown>;
|
41 | export declare const DEFAULT_ROUTER_FEATURENAME = "router";
|
42 | export declare function _createRouterConfig(config: StoreRouterConfig): StoreRouterConfig;
|
43 |
|
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 |
|
53 |
|
54 |
|
55 |
|
56 |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 |
|
62 |
|
63 |
|
64 |
|
65 |
|
66 |
|
67 |
|
68 |
|
69 |
|
70 |
|
71 |
|
72 |
|
73 |
|
74 |
|
75 |
|
76 |
|
77 |
|
78 |
|
79 |
|
80 |
|
81 |
|
82 |
|
83 |
|
84 |
|
85 | export declare class StoreRouterConnectingModule {
|
86 | private store;
|
87 | private router;
|
88 | private serializer;
|
89 | private errorHandler;
|
90 | private readonly config;
|
91 | private readonly activeRuntimeChecks;
|
92 | private lastEvent;
|
93 | private routerState;
|
94 | private storeState;
|
95 | private trigger;
|
96 | private readonly stateKey;
|
97 | static forRoot<T extends BaseRouterStoreState = SerializedRouterStateSnapshot>(config?: StoreRouterConfig<T>): ModuleWithProviders<StoreRouterConnectingModule>;
|
98 | constructor(store: Store<any>, router: Router, serializer: RouterStateSerializer<SerializedRouterStateSnapshot>, errorHandler: ErrorHandler, config: StoreRouterConfig, activeRuntimeChecks: RuntimeChecks);
|
99 | private setUpStoreStateListener;
|
100 | private navigateIfNeeded;
|
101 | private setUpRouterEventsListener;
|
102 | private dispatchRouterRequest;
|
103 | private dispatchRouterNavigation;
|
104 | private dispatchRouterCancel;
|
105 | private dispatchRouterError;
|
106 | private dispatchRouterNavigated;
|
107 | private dispatchRouterAction;
|
108 | private reset;
|
109 | static ɵfac: i0.ɵɵFactoryDeclaration<StoreRouterConnectingModule, never>;
|
110 | static ɵmod: i0.ɵɵNgModuleDeclaration<StoreRouterConnectingModule, never, never, never>;
|
111 | static ɵinj: i0.ɵɵInjectorDeclaration<StoreRouterConnectingModule>;
|
112 | }
|