import type { ProductEntity } from '../../entities/types/index.js'; import type { ResetProductDetailsEntitiesAction, ResetProductDetailsStateAction } from '../types/index.js'; import type { StoreState } from '../../types/index.js'; import type { ThunkDispatch } from 'redux-thunk'; /** * Reset details state and related entities to its initial value. * * @example * ``` * import { resetProductDetails } from '@farfetch/blackout-redux'; * * // State and store before executing action * const state = { id: '123', error: null, isLoading: false, isHydrated: ... }; * const store = { * entities: { * products: { 123: {...} } * } * } * * // Result of reset: * const state = { id: null, error: null, isLoading: false, isHydrated: {} } * const store = { entities: {} } * * // Usage * dispatch(resetProductDetails()); * * ``` * * @returns Dispatch reset details state and entities action. */ declare const resetProductDetails: (productIds?: Array) => (dispatch: ThunkDispatch) => void; export default resetProductDetails;