import { ChainedReducer } from './ChainedReducer'; import { Epic } from './Epic'; import { Action, StateGetter, ExtractPayload } from './types'; export declare type Nullable = T | null; export declare type AnyFn = (...args: any[]) => any; export declare type ConvertAC = T extends null ? () => Action : T extends (...args: infer Args) => any ? (...args: Args) => Action>> : never; export declare type ActionCreators = { [P in keyof T]: ConvertAC; }; export declare type ActionMap = { [name: string]: Nullable<(...args: any[]) => {}>; }; export interface HandleWithState { (): void; epic(): Epic; reducer(initialState: TState): ChainedReducer; reset(): void; } export interface Handle { (): void; epic(): Epic; } declare type ModuleBase = [Handle] & { withActions(actionMap: T): ModuleWithActions>; withState(): ModuleWithState; }; declare type ModuleWithActions = [Handle, TActions] & { withState(): ModuleWithActionsAndState; }; declare type ModuleWithState = [HandleWithState, StateGetter] & { withActions(actionMap: T): ModuleWithActionsAndState>; }; declare type ModuleWithActionsAndState = [HandleWithState, TActions, StateGetter]; export declare function createModule(name: symbol): ModuleBase; export {}; //# sourceMappingURL=createModule.d.ts.map