import { Reducer, AnyAction, Store, StoreEnhancer, Dispatch } from 'redux'; export interface ExtendedReducersMapObject { [key: string]: Reducer | ExtendedReducersMapObject; } export interface ReducerDict { [key: string]: Reducer; } export declare type Handler = (state: S, payload: any) => S; export interface PropInfo { rootProp: string; lastProp: string; beforeLastFunc: (input: S) => any; navigations: string[]; } export interface ActionGeneratorDict { [key: string]: (...args: any[]) => AnyAction; } export interface AnyActionDictionary { [key: string]: (...args: any[]) => any; } export interface AnyProps { [extraProps: string]: any; } declare class StoreWrapper { store: Store; combinedReducers: Reducer; constructor(reducers: ExtendedReducersMapObject | Reducer, initialState: S | null, enhancer?: StoreEnhancer); dispatch(type: string, payload: any): { type: string; payload: any; }; getStore(): Store; getCombinedReducers(): Reducer; } declare let uselessReducer: (state: S, action: AnyAction) => S | null; declare let combineReducerWrapper: (reducers: ExtendedReducersMapObject) => Reducer; declare class ReducerWrapper { defaultState: S | null; funcs: ReducerDict; constructor(defaultState?: S); withHandlersFromOtherReducerWrappers(reducerWrappers: ReducerWrapper[]): this; addHandler(type: string, handler: Handler): this; getNavigationProps(func: Handler): string[]; lambdaFuncToInitialPropInfo(func: Handler): PropInfo; addPropChangedHandler(type: string, mappingFunc?: ((state: S, payload: any) => any), payloadFunc?: Handler): this; getReducer(otherReducers?: ExtendedReducersMapObject): (state: S, action: AnyAction) => S; static importFrom(anotherReducer: Reducer, initialState: S): ReducerWrapper; } declare class ActionCollections { generator: ActionGeneratorDict; name: string; constructor(name: string, actions: AnyActionDictionary); setExecutor(dispatch: Dispatch): AnyActionDictionary; } declare let dispatchAction: (dispatchFunc: Dispatch, type: string, payload?: any) => AnyAction; export { uselessReducer as uselessReducer, combineReducerWrapper as combineReducerWrapper, StoreWrapper as StoreWrapper, ActionCollections as ActionCollections, ReducerWrapper as ReducerWrapper, dispatchAction as dispatchAction };