UNPKG

652 BTypeScriptView Raw
1import { EnvironmentProviders } from '@angular/core';
2import { StoreRouterConfig } from './router_store_config';
3import { SerializedRouterStateSnapshot } from './serializers/full_serializer';
4import { BaseRouterStoreState } from './serializers/base';
5/**
6 * Connects the Angular Router to the Store.
7 *
8 * @usageNotes
9 *
10 * ```ts
11 * bootstrapApplication(AppComponent, {
12 * providers: [
13 * provideStore({ router: routerReducer }),
14 * provideRouterStore(),
15 * ],
16 * });
17 * ```
18 */
19export declare function provideRouterStore<T extends BaseRouterStoreState = SerializedRouterStateSnapshot>(config?: StoreRouterConfig<T>): EnvironmentProviders;