import { Action } from './action'; import { EntityAdapter, ToRedisOptions } from './interface/adapter.interface'; export declare const createEntityAdapter: () => EntityAdapter; /** * Clone State and Reset LastSettlement * @param state * @returns */ declare const cloneAndReset: (state: any, action?: Action) => any; declare const initialMain: (initialState: any, newState: any) => any; /** * Add one entity to the collection. */ declare const addOne: (entity: object, newState: any, options?: ToRedisOptions) => any; /** * Add multiple entities to the collection. */ declare const addMany: (entities: object[], newState: any, options?: ToRedisOptions) => any; /** * Add or Replace one entity in the collection. */ declare const setOne: (entity: object, newState: any) => any; /** * Add or Replace multiple entities in the collection. */ declare const setMany: (entities: object[], newState: any) => any; /** * Replace current collection with provided collection. */ declare const setAll: (entities: object[], newState: any) => any; /** * Remove one entity from the collection. */ declare const removeOne: (id: string, newState: any) => any; /** * Remove multiple entities from the collection, by id or by predicate. */ declare const removeMany: (ids: string[], newState: any) => any; /** * Clear entity collection. */ declare const removeAll: (newState: any) => any; /** * Update one entity in the collection. Supports partial updates. */ declare const updateOne: (entity: object, newState: any) => any; /** * Update multiple entities in the collection. Supports partial updates. */ declare const updateMany: (entities: object[], newState: any) => any; /** * Add or Update one entity in the collection. */ declare const upsertOne: (entity: object, newState: any) => any; /** * Add or Update multiple entities in the collection. */ declare const upsertMany: (entities: object[], newState: any) => any; /** * The entity adapter also provides methods for operations against an entity. * These methods can change one to many records at a time. * Each method returns the newly modified state if changes were made and the same state if no changes were made. * * addOne: Add one entity to the collection. * * addMany: Add multiple entities to the collection. * * setAll: Replace current collection with provided collection. * * setOne: Add or Replace one entity in the collection. * * setMany: Add or Replace multiple entities in the collection. * * removeOne: Remove one entity from the collection. * * removeMany: Remove multiple entities from the collection, by id or by predicate. * * removeAll: Clear entity collection. * * updateOne: Update one entity in the collection. Supports partial updates. * * updateMany: Update multiple entities in the collection. Supports partial updates. * * upsertOne: Add or Update one entity in the collection. * * upsertMany: Add or Update multiple entities in the collection. * * mapOne: Update one entity in the collection by defining a map function. * * map: Update multiple entities in the collection by defining a map function, similar to Array.map. */ export { cloneAndReset, initialMain, addOne, addMany, setOne, setMany, setAll, removeOne, removeMany, removeAll, updateOne, updateMany, upsertOne, upsertMany, };