/// import { ObservableInput } from "rxjs/Observable"; import { ComponentClass } from "react"; export declare type Inject = ObservableInput | ((store: Partial) => any); export declare type Listen = (currentStore: Partial, nextStore: Partial) => any; export declare type Success = string | ((value: S[keyof S], currentState: S) => Partial); export declare type AsyncResource = { source$: Inject; success: Success; }; export declare type ListenResource = { source$: Listen; success: Success; }; export declare const inject: (source$: Inject, success: Success) => (component: ComponentClass) => any; export declare const listen: (source$: Listen, success: Success) => (component: ComponentClass) => any;