1 | import { ApplicationRef } from '@angular/core';
|
2 | import { AnyAction, StoreEnhancer } from 'redux';
|
3 | import { EnhancerOptions } from 'redux-devtools-extension';
|
4 | import { NgRedux } from './ng-redux';
|
5 | export interface ReduxDevTools {
|
6 | (options: EnhancerOptions): StoreEnhancer<any>;
|
7 | listen: (onMessage: (message: AnyAction) => void, instanceId?: string) => void;
|
8 | }
|
9 |
|
10 |
|
11 |
|
12 | export declare class DevToolsExtension {
|
13 | private appRef;
|
14 | private ngRedux;
|
15 |
|
16 | constructor(appRef: ApplicationRef, ngRedux: NgRedux<any>);
|
17 | /**
|
18 | * A wrapper for the Chrome Extension Redux DevTools.
|
19 | * Makes sure state changes triggered by the extension
|
20 | * trigger Angular2's change detector.
|
21 | *
|
22 | * @argument options: dev tool options; same
|
23 | * format as described here:
|
24 | * [zalmoxisus/redux-devtools-extension/blob/master/docs/API/Arguments.md]
|
25 | */
|
26 | enhancer: (options?: EnhancerOptions) => StoreEnhancer<any, {}>;
|
27 | |
28 |
|
29 |
|
30 | isEnabled: () => boolean;
|
31 | |
32 |
|
33 |
|
34 | getDevTools: () => ReduxDevTools;
|
35 | }
|