UNPKG

1.56 kBTypeScriptView Raw
1import { ErrorHandler } from '@angular/core';
2import { Router } from '@angular/router';
3import { RuntimeChecks, Store } from '@ngrx/store';
4import { StoreRouterConfig } from './router_store_config';
5import { SerializedRouterStateSnapshot } from './serializers/full_serializer';
6import { RouterStateSerializer } from './serializers/base';
7import * as i0 from "@angular/core";
8/**
9 * Shared router initialization logic used alongside both the StoreRouterConnectingModule and the provideRouterStore
10 * function
11 */
12export declare class StoreRouterConnectingService {
13 private store;
14 private router;
15 private serializer;
16 private errorHandler;
17 private readonly config;
18 private readonly activeRuntimeChecks;
19 private lastEvent;
20 private routerState;
21 private storeState;
22 private trigger;
23 private readonly stateKey;
24 constructor(store: Store<any>, router: Router, serializer: RouterStateSerializer<SerializedRouterStateSnapshot>, errorHandler: ErrorHandler, config: StoreRouterConfig, activeRuntimeChecks: RuntimeChecks);
25 private setUpStoreStateListener;
26 private navigateIfNeeded;
27 private setUpRouterEventsListener;
28 private dispatchRouterRequest;
29 private dispatchRouterNavigation;
30 private dispatchRouterCancel;
31 private dispatchRouterError;
32 private dispatchRouterNavigated;
33 private dispatchRouterAction;
34 private reset;
35 static ɵfac: i0.ɵɵFactoryDeclaration<StoreRouterConnectingService, never>;
36 static ɵprov: i0.ɵɵInjectableDeclaration<StoreRouterConnectingService>;
37}