import type { ResetWishlistSetsEntitiesAction, ResetWishlistSetsStateAction } from '../types/index.js'; import type { StoreState } from '../../types/index.js'; import type { ThunkDispatch } from 'redux-thunk'; /** * Reset wishlist sets state and entities to its initial value. * * @example * ``` * import { resetWishlistSets } from '@farfetch/blackout-redux'; * * dispatch(resetWishlistSets()); * * // State object before executing action * const state = { * id: '123', * error: null, * isLoading: false, * items: {}, * sets: { * id: '456', * error: null, * isLoading: false, * set: {}, * }, * }; * * Store: { entities: { * wishlistSets: { 123: {...} }, * wishlistItems: { 1: {...} } * } } * * // Result: * const state = { * id: '123', * error: null, * isLoading: false, * items: {}, * sets: { * id: null, * error: null, * isLoading: false, * set: {}, * }, * }; * * Store: { entities: { * wishlistItems: { 1: {...} } * } } * * ``` * * @returns Dispatch reset state and entities action. */ declare const resetWishlistSets: () => (dispatch: ThunkDispatch) => void; export default resetWishlistSets;