UNPKG

1.61 kBTypeScriptView Raw
1import { ErrorHandler, OnDestroy } 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>, OnDestroy {
10 private liftedStateSubscription;
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 ngOnDestroy(): void;
17 dispatch(action: Action): void;
18 next(action: any): void;
19 error(error: any): void;
20 complete(): void;
21 performAction(action: any): void;
22 refresh(): void;
23 reset(): void;
24 rollback(): void;
25 commit(): void;
26 sweep(): void;
27 toggleAction(id: number): void;
28 jumpToAction(actionId: number): void;
29 jumpToState(index: number): void;
30 importState(nextLiftedState: any): void;
31 lockChanges(status: boolean): void;
32 pauseRecording(status: boolean): void;
33 static ɵfac: i0.ɵɵFactoryDeclaration<StoreDevtools, never>;
34 static ɵprov: i0.ɵɵInjectableDeclaration<StoreDevtools>;
35}