UNPKG

1.56 kBTypeScriptView Raw
1import { ErrorHandler } from '@angular/core';
2import { Action, ActionsSubject, ReducerObservable, ScannedActionsSubject, StateObservable } 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';
8import * as i0 from "@angular/core";
9export declare class StoreDevtools implements Observer<any> {
10 private stateSubscription;
11 private extensionStartSubscription;
12 dispatcher: ActionsSubject;
13 liftedState: Observable<LiftedState>;
14 state: StateObservable;
15 constructor(dispatcher: DevtoolsDispatcher, actions$: ActionsSubject, reducers$: ReducerObservable, extension: DevtoolsExtension, scannedActions: ScannedActionsSubject, errorHandler: ErrorHandler, initialState: any, config: StoreDevtoolsConfig);
16 dispatch(action: Action): void;
17 next(action: any): void;
18 error(error: any): void;
19 complete(): void;
20 performAction(action: any): void;
21 refresh(): void;
22 reset(): void;
23 rollback(): void;
24 commit(): void;
25 sweep(): void;
26 toggleAction(id: number): void;
27 jumpToAction(actionId: number): void;
28 jumpToState(index: number): void;
29 importState(nextLiftedState: any): void;
30 lockChanges(status: boolean): void;
31 pauseRecording(status: boolean): void;
32 static ɵfac: i0.ɵɵFactoryDeclaration<StoreDevtools, never>;
33 static ɵprov: i0.ɵɵInjectableDeclaration<StoreDevtools>;
34}