export declare const ACTIONS_DELIMITER = "."; export declare const INIT_STATE_ACTIONS = "__encaps_init_state__"; export declare type ICommonAction = Fields & { type: string; }; export declare type Action = ICommonAction | IAction; export interface ICommonActionCreator { (...args: Agrs): ICommonAction; } export declare type IAction

= { type: string; /** @todo поместить в meta */ actions?: Array | ICommonAction>; } & Payload

; declare type Payload

= P extends undefined ? { payload?: P; } : { payload: P; }; export interface IActionCreator { (...args: Agrs): IAction; } export declare type Reducer = (state?: S, action?: IAction) => S; export declare type ModelState = T extends { actions: any; reducer: (...args: any[]) => infer R; } ? R : any; export declare type ModelActions = T extends { actions: infer A; reducer: (...args: any[]) => any; } ? A : any; export {};