export interface Config { key?: string; resourceName: string; } export interface InvariantsBaseArgs { reducerName: ReducerName; canBeArray: boolean; } export interface InvariantsExtraArgs { assertValidStore: (scope: string, current: any) => void; config: Config; current: any; record: any; } export interface Map { [key: string]: T; } export declare type ReducerName = "createError" | "createSuccess" | "createStart" | "deleteError" | "deleteSuccess" | "deleteStart" | "fetchSuccess" | "fetchError" | "updateError" | "updateSuccess" | "updateStart"; export interface StoreList { remove: (config: Config, current: Array, record: any) => Array; } export interface StoreMap { remove: (config: Config, current: Map, record: any) => Map; } export interface Record { id: string | number; _cid?: string | number; busy?: boolean; deleted?: boolean; pendingCreate?: boolean; pendingUpdate?: boolean; }