1 | import { InjectionToken } from '@angular/core';
|
2 | import { Observable } from 'rxjs';
|
3 | import { SerializationOptions, StoreDevtoolsConfig } from './config';
|
4 | import { DevtoolsDispatcher } from './devtools-dispatcher';
|
5 | import { LiftedAction, LiftedState } from './reducer';
|
6 | import * as i0 from "@angular/core";
|
7 | export declare const ExtensionActionTypes: {
|
8 | START: string;
|
9 | DISPATCH: string;
|
10 | STOP: string;
|
11 | ACTION: string;
|
12 | };
|
13 | export declare const REDUX_DEVTOOLS_EXTENSION: InjectionToken<ReduxDevtoolsExtension>;
|
14 | export interface ReduxDevtoolsExtensionConnection {
|
15 | subscribe(listener: (change: any) => void): void;
|
16 | unsubscribe(): void;
|
17 | send(action: any, state: any): void;
|
18 | init(state?: any): void;
|
19 | error(anyErr: any): void;
|
20 | }
|
21 | export interface ReduxDevtoolsExtensionConfig {
|
22 | features?: object | boolean;
|
23 | name: string | undefined;
|
24 | maxAge?: number;
|
25 | autoPause?: boolean;
|
26 | serialize?: boolean | SerializationOptions;
|
27 | }
|
28 | export interface ReduxDevtoolsExtension {
|
29 | connect(options: ReduxDevtoolsExtensionConfig): ReduxDevtoolsExtensionConnection;
|
30 | send(action: any, state: any, options: ReduxDevtoolsExtensionConfig): void;
|
31 | }
|
32 | export declare class DevtoolsExtension {
|
33 | private config;
|
34 | private dispatcher;
|
35 | private devtoolsExtension;
|
36 | private extensionConnection;
|
37 | liftedActions$: Observable<any>;
|
38 | actions$: Observable<any>;
|
39 | start$: Observable<any>;
|
40 | constructor(devtoolsExtension: ReduxDevtoolsExtension, config: StoreDevtoolsConfig, dispatcher: DevtoolsDispatcher);
|
41 | notify(action: LiftedAction, state: LiftedState): void;
|
42 | private createChangesObservable;
|
43 | private createActionStreams;
|
44 | private unwrapAction;
|
45 | private getExtensionConfig;
|
46 | private sendToReduxDevtools;
|
47 | static ɵfac: i0.ɵɵFactoryDeclaration<DevtoolsExtension, never>;
|
48 | static ɵprov: i0.ɵɵInjectableDeclaration<DevtoolsExtension>;
|
49 | }
|