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