1 | import { OnDestroy, Provider } from '@angular/core';
|
2 | import { BehaviorSubject, Observable } from 'rxjs';
|
3 | import { ActionsSubject } from './actions_subject';
|
4 | import { Action, ActionReducer } from './models';
|
5 | import { ReducerObservable } from './reducer_manager';
|
6 | import { ScannedActionsSubject } from './scanned_actions_subject';
|
7 | export declare abstract class StateObservable extends Observable<any> {
|
8 | }
|
9 | export declare class State<T> extends BehaviorSubject<any> implements OnDestroy {
|
10 | static readonly INIT: "@ngrx/store/init";
|
11 | private stateSubscription;
|
12 | constructor(actions$: ActionsSubject, reducer$: ReducerObservable, scannedActions: ScannedActionsSubject, initialState: any);
|
13 | ngOnDestroy(): void;
|
14 | }
|
15 | export declare type StateActionPair<T, V extends Action = Action> = {
|
16 | state: T | undefined;
|
17 | action?: V;
|
18 | };
|
19 | export declare function reduceState<T, V extends Action = Action>(stateActionPair: StateActionPair<T, V> | undefined, [action, reducer]: [V, ActionReducer<T, V>]): StateActionPair<T, V>;
|
20 | export declare const STATE_PROVIDERS: Provider[];
|