1 | import { NavigationCancel, NavigationEnd, NavigationError, NavigationStart, RoutesRecognized } from '@angular/router';
|
2 | import { BaseRouterStoreState } from './serializers/base';
|
3 | import { SerializedRouterStateSnapshot } from './serializers/default_serializer';
|
4 |
|
5 |
|
6 |
|
7 | export declare const ROUTER_REQUEST = "@ngrx/router-store/request";
|
8 |
|
9 |
|
10 |
|
11 | export declare type RouterRequestPayload<T extends BaseRouterStoreState = SerializedRouterStateSnapshot> = {
|
12 | routerState: T;
|
13 | event: NavigationStart;
|
14 | };
|
15 |
|
16 |
|
17 |
|
18 | export declare type RouterRequestAction<T extends BaseRouterStoreState = SerializedRouterStateSnapshot> = {
|
19 | type: typeof ROUTER_REQUEST;
|
20 | payload: RouterRequestPayload<T>;
|
21 | };
|
22 | export declare const routerRequestAction: import("@ngrx/store").ActionCreator<"@ngrx/router-store/request", (props: {
|
23 | payload: RouterRequestPayload<SerializedRouterStateSnapshot>;
|
24 | }) => {
|
25 | payload: RouterRequestPayload<SerializedRouterStateSnapshot>;
|
26 | } & import("@ngrx/store/src/models").TypedAction<"@ngrx/router-store/request">>;
|
27 |
|
28 |
|
29 |
|
30 | export declare const ROUTER_NAVIGATION = "@ngrx/router-store/navigation";
|
31 |
|
32 |
|
33 |
|
34 | export declare type RouterNavigationPayload<T extends BaseRouterStoreState = SerializedRouterStateSnapshot> = {
|
35 | routerState: T;
|
36 | event: RoutesRecognized;
|
37 | };
|
38 |
|
39 |
|
40 |
|
41 | export declare type RouterNavigationAction<T extends BaseRouterStoreState = SerializedRouterStateSnapshot> = {
|
42 | type: typeof ROUTER_NAVIGATION;
|
43 | payload: RouterNavigationPayload<T>;
|
44 | };
|
45 | export declare const routerNavigationAction: import("@ngrx/store").ActionCreator<"@ngrx/router-store/navigation", (props: {
|
46 | payload: RouterNavigationPayload<SerializedRouterStateSnapshot>;
|
47 | }) => {
|
48 | payload: RouterNavigationPayload<SerializedRouterStateSnapshot>;
|
49 | } & import("@ngrx/store/src/models").TypedAction<"@ngrx/router-store/navigation">>;
|
50 |
|
51 |
|
52 |
|
53 | export declare const ROUTER_CANCEL = "@ngrx/router-store/cancel";
|
54 |
|
55 |
|
56 |
|
57 | export declare type RouterCancelPayload<T, V extends BaseRouterStoreState = SerializedRouterStateSnapshot> = {
|
58 | routerState: V;
|
59 | storeState: T;
|
60 | event: NavigationCancel;
|
61 | };
|
62 |
|
63 |
|
64 |
|
65 | export declare type RouterCancelAction<T, V extends BaseRouterStoreState = SerializedRouterStateSnapshot> = {
|
66 | type: typeof ROUTER_CANCEL;
|
67 | payload: RouterCancelPayload<T, V>;
|
68 | };
|
69 | export declare const routerCancelAction: import("@ngrx/store").ActionCreator<"@ngrx/router-store/cancel", (props: {
|
70 | payload: RouterCancelPayload<SerializedRouterStateSnapshot>;
|
71 | }) => {
|
72 | payload: RouterCancelPayload<SerializedRouterStateSnapshot>;
|
73 | } & import("@ngrx/store/src/models").TypedAction<"@ngrx/router-store/cancel">>;
|
74 |
|
75 |
|
76 |
|
77 | export declare const ROUTER_ERROR = "@ngrx/router-store/error";
|
78 |
|
79 |
|
80 |
|
81 | export declare type RouterErrorPayload<T, V extends BaseRouterStoreState = SerializedRouterStateSnapshot> = {
|
82 | routerState: V;
|
83 | storeState: T;
|
84 | event: NavigationError;
|
85 | };
|
86 |
|
87 |
|
88 |
|
89 | export declare type RouterErrorAction<T, V extends BaseRouterStoreState = SerializedRouterStateSnapshot> = {
|
90 | type: typeof ROUTER_ERROR;
|
91 | payload: RouterErrorPayload<T, V>;
|
92 | };
|
93 | export declare const routerErrorAction: import("@ngrx/store").ActionCreator<"@ngrx/router-store/error", (props: {
|
94 | payload: RouterErrorPayload<SerializedRouterStateSnapshot>;
|
95 | }) => {
|
96 | payload: RouterErrorPayload<SerializedRouterStateSnapshot>;
|
97 | } & import("@ngrx/store/src/models").TypedAction<"@ngrx/router-store/error">>;
|
98 |
|
99 |
|
100 |
|
101 | export declare const ROUTER_NAVIGATED = "@ngrx/router-store/navigated";
|
102 |
|
103 |
|
104 |
|
105 | export declare type RouterNavigatedPayload<T extends BaseRouterStoreState = SerializedRouterStateSnapshot> = {
|
106 | routerState: T;
|
107 | event: NavigationEnd;
|
108 | };
|
109 |
|
110 |
|
111 |
|
112 | export declare type RouterNavigatedAction<T extends BaseRouterStoreState = SerializedRouterStateSnapshot> = {
|
113 | type: typeof ROUTER_NAVIGATED;
|
114 | payload: RouterNavigatedPayload<T>;
|
115 | };
|
116 | export declare const routerNavigatedAction: import("@ngrx/store").ActionCreator<"@ngrx/router-store/navigated", (props: {
|
117 | payload: RouterNavigatedPayload<SerializedRouterStateSnapshot>;
|
118 | }) => {
|
119 | payload: RouterNavigatedPayload<SerializedRouterStateSnapshot>;
|
120 | } & import("@ngrx/store/src/models").TypedAction<"@ngrx/router-store/navigated">>;
|
121 |
|
122 |
|
123 |
|
124 | export declare type RouterAction<T, V extends BaseRouterStoreState = SerializedRouterStateSnapshot> = RouterRequestAction<V> | RouterNavigationAction<V> | RouterCancelAction<T, V> | RouterErrorAction<T, V> | RouterNavigatedAction<V>;
|