/** * Hook to provide all kinds of data for the business logic attached to the * wishlists. */ import { type WishlistItemActionMetadata } from '@farfetch/blackout-redux'; import type { Config, PatchWishlistItemData, PostWishlistItemData, WishlistItem } from '@farfetch/blackout-client'; import type { UseWishlistOptions } from './types/index.js'; /** * Provides Redux actions and state access, as well as handlers for dealing with * wishlist business logic. It will fetch wishlist data from the current user's wishlist. * * @returns All the handlers, state, actions and relevant data needed to manage any wishlist operation. */ declare const useWishlist: (options?: UseWishlistOptions) => { isLoading: boolean; error: import("@farfetch/blackout-client").BlackoutError | null; isFetched: boolean; actions: { fetch: (config?: Config | undefined) => Promise; reset: () => void; addItem: (data: PostWishlistItemData, metadata?: WishlistItemActionMetadata | undefined, config?: Config | undefined) => Promise; updateItem: (wishlistItemId: WishlistItem['id'], data: PatchWishlistItemData, metadata?: WishlistItemActionMetadata, config?: Config | undefined) => Promise; removeItem: (wishlistItemId: WishlistItem['id'], metadata?: WishlistItemActionMetadata, config?: Config | undefined) => Promise; }; data: { count: number | undefined; isEmpty: boolean; items: import("@farfetch/blackout-redux").WishlistItemDenormalized[] | undefined; id: string; userId: number | null; } | undefined; }; export default useWishlist;