import type { Dispatch } from 'redux'; import type { ResetBagOperationsAction, ResetBagOperationsEntitiesAction } from '../types/index.js'; import type { StoreState } from '../../types/index.js'; import type { ThunkDispatch } from 'redux-thunk'; /** * Reset bag operations entities to its initial value. * * @example * ``` * // Store before executing action * const store = { * entities: { * bag: { 123: {...} }, * bagItems: { 1: {...} }, * bagOperations: { 1: {...} } * } * } * * // Result of reset bag operations entities: * const store = { * entities: { * bag: { 123: {...} }, * bagItems: { 1: {...} } * } * } * ``` * * @returns Dispatch reset bag operations entities action. */ export declare const resetEntities: () => (dispatch: Dispatch) => void; /** * Reset bag operations state and related entities to its initial value. * * @example * ``` * import { resetBagOperations } from '@farfetch/blackout-redux'; * * // State and store before executing action * const state = { error: { 123: new Error('...') }, isLoading: { 456: false } }; * const store = { * entities: { * bagOperations: { 456: {...} } * } * } * * // Result of resetBagOperations: * const state = { error: {}, isLoading: {} } * const store = { entities: {} } * * // Usage * dispatch(resetBagOperations()); * * ``` * * @returns Dispatch reset bag operations state and entities action. */ declare const resetBagOperations: () => (dispatch: ThunkDispatch) => void; export default resetBagOperations;