import { Options } from "react-redux"; import { Dispatch } from "redux"; import { BaseComponent, StatefulBaseComponentConstructor } from "../react/stateless-component"; import { IReduxActionConstructor } from "./action"; import { IState } from "./preload-state"; import { IVirtualStoreConstructor } from "./virtual-store"; export interface TDispatchProps { _dispatch?: Dispatch; renderCounts?: number; } export declare function tDispatchMapper(disp: Dispatch): TDispatchProps; export declare type WrapFunction = (state: In) => Out; export declare type MapperObject = { [K in keyof Props]?: WrapFunction; }; export declare type MapperFunction = WrapFunction>; export declare type Mapper = MapperFunction | MapperObject; export declare class ReactReduxConnector { protected mps: Mapper[]; protected advOpts: Options; constructor(); addMapper(obj: Mapper): void; isComponentUseContext(notPure?: boolean): void; isComponentUseDOM(storeRef?: boolean): void; connect>(reactClass: Class): Class; } /** @deprecated */ export declare function connectToStore(mapper0: WrapFunction): any; /** @deprecated */ export declare function connectToStore(...mappers: Mapper[]): any; export declare type triggerFn = (this: BaseComponent, args: IData) => void; export declare function ActionDispatcher(Act: IReduxActionConstructor): PropertyDecorator; export declare function ActionDispatcher(Act: IReduxActionConstructor, Sto: IVirtualStoreConstructor): PropertyDecorator; export declare type triggerMtd = (this: BaseComponent, ...args: any[]) => IData; export declare type TypedMethodDecorator = (target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor; export declare type TriggerDecorator = TypedMethodDecorator>; export declare const CANCEL_TRIGGER: any; export declare function ActionTrigger(Act: IReduxActionConstructor): TriggerDecorator; export declare function ActionTrigger(Act: IReduxActionConstructor, Sto: IVirtualStoreConstructor): TriggerDecorator;