import { ItemSelector, EntityItemCommon } from 'interfaces'; export declare const SUCCESS_ADD_ITEM: 'SUCCESS_ADD_ITEM'; export declare const SUCCESS_UPDATE_ITEM: 'SUCCESS_UPDATE_ITEM'; export declare const SUCCESS_DELETE_ITEM: 'SUCCESS_DELETE_ITEM'; export declare const SUCCESS_FETCH_ITEM: 'SUCCESS_FETCH_ITEM'; export declare const SUCCESS_FETCH_LIST: 'SUCCESS_FETCH_LIST'; export declare const SUCCESS_QUERY_LIST: 'SUCCESS_QUERY_LIST'; export declare type SuccessAddItem = { type: typeof SUCCESS_ADD_ITEM; payload: { entityType: string; id: string; entityItem: any; }; }; export declare type SuccessUpdateItem = { type: typeof SUCCESS_UPDATE_ITEM; payload: { entityType: string; id: string; entityItem: any; }; }; export declare type SuccessDeleteItem = { type: typeof SUCCESS_DELETE_ITEM; payload: { entityType: string; id: string; entityItem: any; }; }; export declare type SuccessFetchItemAction = { type: typeof SUCCESS_FETCH_ITEM; payload: { entityType: string; id: string; entityItem: any; }; }; export declare type SuccessFetchListAction = { type: typeof SUCCESS_FETCH_LIST; payload: { entityType: string; orderBy: string; ids: Array; itemListById: { [id: string]: any; }; needResetList: boolean; }; }; export declare type SuccessQueryListAction = { type: typeof SUCCESS_QUERY_LIST; payload: { entityType: string; queryName: string; ids: Array; itemListById: { [id: string]: any; }; needResetList: boolean; }; }; export declare function successAddItem(itemSelector: ItemSelector, entityItem: any): SuccessAddItem; export declare function successUpdateItem(itemSelector: ItemSelector, entityItem: any): SuccessUpdateItem; export declare function successDeleteItem(itemSelector: ItemSelector, entityItem: Object): SuccessDeleteItem; export declare function successFetchItem(itemSelector: ItemSelector, entityItem: any): SuccessFetchItemAction; export declare function successFetchList(entityType: string, orderBy: string, ids: Array, itemListById: { [id: string]: EntityItemCommon; }, needResetList?: boolean): SuccessFetchListAction; export declare function successQueryList(entityType: string, queryName: string, ids: Array, itemListById: { [id: string]: EntityItemCommon; }, needResetList?: boolean): SuccessQueryListAction;