export declare type AnyAction = (...args: any[]) => void; export declare type AnyActions = Record; export declare type Middleware = (prevState: State, nextState: State, actions: Actions) => Partial; export declare type SideEffect = (prevState: State, nextState: State) => void; export declare type EnhancedAction = (...args: Parameters) => (state: State, actions: Actions) => Partial | void; export declare type EnhancedActions = { [Name in keyof Actions]: EnhancedAction; }; export declare type ManagerConfig = { actions: EnhancedActions; debug?: boolean; middleware?: Middleware[]; state?: Partial; sideEffects?: SideEffect[]; }; export declare type ManagerFactory = (config: ManagerConfig) => Manager; export declare type Manager = { readonly state: State; actions: Actions; };