export interface Action { type: K; payload: P; } export declare type uActionTypesMap = { [key in keyof A]: key; }; export declare type uActionsMap = { [key in keyof A]: Action; }; export declare type AnyOfMap = A[keyof A]; export declare type uActionCreators = { [key in keyof A]: (payload: A[key]) => Action; }; /** * TODO * * @param actionObj */ export declare function createActionCreators(actionObj: A): uActionCreators; /** * TODO * * @param actionObj */ export declare function createActionTypes(actionObj: A): uActionTypesMap;