import type { ResetProductListsEntitiesAction, ResetProductListsStateAction } from '../types/index.js'; import type { StoreState } from '../../types/index.js'; import type { ThunkDispatch } from 'redux-thunk'; /** * Reset product listings state and related entities to its initial value. * * @example * ``` * import { resetProductListings } from '@farfetch/blackout-redux'; * * // State and store before executing action * const state = { * hash: '123-foo', * error: {'123-foo': 'Error'}, * isLoading: {'123-foo': false}, * ... * }; * const store = { * entities: { * products: { 123: {...} } * productsLists: { '123-foo': {...} } * } * } * * // Result of resetProductListings: * const state = { hash: null, error: {}, isLoading: {}, isHydrated: {} } * const store = { entities: { products: { 123: {...} } } } * * // Usage * dispatch(resetProductListings()); * * ``` * * @returns Dispatch reset product listings state and entities action. */ declare const resetProductListings: (productListingsHashes?: Array) => (dispatch: ThunkDispatch) => void; export default resetProductListings;