UNPKG

1.37 kBTypeScriptView Raw
1import { ErrorHandler } from '@angular/core';
2import { Action, ActionsSubject, ReducerObservable, ScannedActionsSubject } from '@ngrx/store';
3import { Observable, Observer } from 'rxjs';
4import { StoreDevtoolsConfig } from './config';
5import { DevtoolsExtension } from './extension';
6import { LiftedState } from './reducer';
7import { DevtoolsDispatcher } from './devtools-dispatcher';
8export declare class StoreDevtools implements Observer<any> {
9 private stateSubscription;
10 private extensionStartSubscription;
11 dispatcher: ActionsSubject;
12 liftedState: Observable<LiftedState>;
13 state: Observable<any>;
14 constructor(dispatcher: DevtoolsDispatcher, actions$: ActionsSubject, reducers$: ReducerObservable, extension: DevtoolsExtension, scannedActions: ScannedActionsSubject, errorHandler: ErrorHandler, initialState: any, config: StoreDevtoolsConfig);
15 dispatch(action: Action): void;
16 next(action: any): void;
17 error(error: any): void;
18 complete(): void;
19 performAction(action: any): void;
20 refresh(): void;
21 reset(): void;
22 rollback(): void;
23 commit(): void;
24 sweep(): void;
25 toggleAction(id: number): void;
26 jumpToAction(actionId: number): void;
27 jumpToState(index: number): void;
28 importState(nextLiftedState: any): void;
29 lockChanges(status: boolean): void;
30 pauseRecording(status: boolean): void;
31}