import { Settlement } from "./interface/store.interface"; export declare abstract class Action { abstract type: string; private _actionId; private _createDateTime; private _updateDateTime; private _parentId; private _sourceId?; private _targetIds?; constructor(); get actionId(): string; get createDateTime(): number; get updateDateTime(): number; set parentId(parentId: string); set sourceId(sourceId: string); set targetIds(targetIds: string[]); private _nowTime; toObject: () => {}; setParent(parent: Action): void; addChild(child: Action): void; } export declare const transferActionMapToActionList: (actionMap: object) => string[]; export declare const DefaultActionMap: { SystemInitiate: string; ErrorResponse: string; SystemRestoreByCache: string; PacketLossObserved: string; }; export declare class SystemInitiate extends Action { payload?: never; readonly type: string; constructor(payload?: never); } export declare class ErrorResponse extends Action { payload: { failedAction?: Action; fromDir?: string; error: string; descriptions?: string; options?: any; }; readonly type: string; constructor(payload: { failedAction?: Action; fromDir?: string; error: string; descriptions?: string; options?: any; }); } export declare class SystemRestoreByCache extends Action { payload: { storeState: any; }; readonly type: string; constructor(payload: { storeState: any; }); } export declare class PacketLossObserved extends Action { payload: { reducerName: string; _currentHash: string; }; readonly type: string; constructor(payload: { reducerName: string; _currentHash: string; }); } export declare enum CommonActionMap { Initial = "[Default] Initial", AddOne = "[Default] Add One", AddMany = "[Default] Add Many", SetOne = "[Default] Set One", SetMany = "[Default] Set Many", SetAll = "[Default] Set All", RemoveOne = "[Default] Remove One", RemoveMany = "[Default] Remove Many", RemoveAll = "[Default] Remove All", UpdateOne = "[Default] Update One", UpdateMany = "[Default] Update Many", UpsertOne = "[Default] Upsert One", UpsertMany = "[Default] Upsert Many", CompareSettlement = "[Default] Compare Settlement" } export declare class Initial extends Action { private reducerName; private payload?; readonly type: string; constructor(reducerName: string, payload?: never); } export declare class AddOne extends Action { private reducerName; entity: any; readonly type: string; constructor(reducerName: string, entity: any); } export declare class AddMany extends Action { private reducerName; entities: any[]; readonly type: string; constructor(reducerName: string, entities: any[]); } export declare class SetOne extends Action { private reducerName; entity: any; readonly type: string; constructor(reducerName: string, entity: any); } export declare class SetMany extends Action { private reducerName; entities: any[]; readonly type: string; constructor(reducerName: string, entities: any[]); } export declare class SetAll extends Action { private reducerName; entities: any; readonly type: string; constructor(reducerName: string, entities: any); } export declare class RemoveOne extends Action { private reducerName; id: string; readonly type: string; constructor(reducerName: string, id: string); } export declare class RemoveMany extends Action { private reducerName; ids: any[]; readonly type: string; constructor(reducerName: string, ids: any[]); } export declare class RemoveAll extends Action { private reducerName; readonly type: string; constructor(reducerName: string); } export declare class UpdateOne extends Action { private reducerName; entity: any; readonly type: string; constructor(reducerName: string, entity: any); } export declare class UpdateMany extends Action { private reducerName; entities: any[]; readonly type: string; constructor(reducerName: string, entities: any[]); } export declare class UpsertOne extends Action { private reducerName; entity: any; readonly type: string; constructor(reducerName: string, entity: any); } export declare class UpsertMany extends Action { private reducerName; entities: any[]; readonly type: string; constructor(reducerName: string, entities: any[]); } export declare class CompareSettlement extends Action { private reducerName; settlement: Settlement; readonly type: string; constructor(reducerName: string, settlement: Settlement); } export declare const replaceDefaultToEntity: (defaultName: string, reducerName: string) => string; export declare const transferDefaultToEntity: (reducerName: string) => { actionMap: typeof CommonActionMap; methodMap: MethodMap; }; export interface MethodMap { Initial: (reducerName: any) => Initial; AddOne: (reducerName: any, entity: any) => AddOne; AddMany: (reducerName: any, entities: any) => AddMany; SetOne: (reducerName: any, entity: any) => SetOne; SetMany: (reducerName: any, entities: any) => SetMany; SetAll: (reducerName: any, entities: any) => SetAll; RemoveOne: (reducerName: any, id: any) => RemoveOne; RemoveMany: (reducerName: any, ids: any) => RemoveMany; RemoveAll: (reducerName: any) => RemoveAll; UpdateOne: (reducerName: any, entity: any) => UpdateOne; UpdateMany: (reducerName: any, entities: any) => UpdateMany; UpsertOne: (reducerName: any, entity: any) => UpsertOne; UpsertMany: (reducerName: any, entities: any) => UpsertMany; CompareSettlement: (reducerName: any, settlement: any) => CompareSettlement; } export type DefaultActionUnion = AddOne | AddMany | SetOne | SetMany | SetAll | RemoveOne | RemoveMany | RemoveAll | UpdateOne | UpdateMany | UpsertOne | UpsertMany | CompareSettlement;