import { Observable } from 'rxjs/Observable'; import { BehaviorSubject } from 'rxjs/BehaviorSubject'; import 'rxjs/add/observable/empty'; import 'rxjs/add/observable/of'; import 'rxjs/add/operator/catch'; import 'rxjs/add/operator/do'; import 'rxjs/add/operator/filter'; import 'rxjs/add/operator/mergeMap'; import 'rxjs/add/operator/scan'; export interface Action { type: string; payload: any; } export declare type AsyncAction = ((dispatch: Dispatch) => Action); export declare type ActionThunk = ((dispatch: Dispatch) => any); export declare type Dispatch = (action: EventuallyAction) => any; export declare type EventuallyAction = Action | AsyncAction | Observable | Promise; export declare function makeStore(initialState: T, reducers: object): { state$: BehaviorSubject; dispatch: Dispatch; };