/** * Hook to provide all kinds of data for the business logic attached to the * wishlist set. */ import { type WishlistSetActionMetadata } from '@farfetch/blackout-redux'; import type { Config, PatchWishlistSetData, WishlistSet } from '@farfetch/blackout-client'; import type { UseWishlistSetOptions } from './types/index.js'; /** * Provides Redux actions and state access to deal with wishlist set business * logic. * * @param setId - Wishlist set identifier. * * @returns All the state, actions and relevant data needed to manage a wishlist set. */ declare const useWishlistSet: (setId: WishlistSet['setId'], options?: UseWishlistSetOptions) => { /** * Error state of the fetched wishlist set. */ error: import("@farfetch/blackout-client").BlackoutError | null | undefined; /** * Whether the wishlist set is fetched. */ isFetched: boolean; /** * Whether the wishlist set is loading. */ isLoading: boolean; actions: { /** * Removes the wishlist set. */ remove: (config?: Config) => Promise; /** * Updates the wishlist set. */ update: (data: PatchWishlistSetData, metadata?: WishlistSetActionMetadata, config?: Config) => Promise; /** * Fetches the wishlist set. */ fetch: (config?: Config) => Promise; }; data: { name: string; id: string; description?: string | undefined; dateCreated: string | null; createdByStaffMemberId?: string | null | undefined; sharedWishlistId?: string | undefined; wishlistSetItems: import("@farfetch/blackout-redux").WishlistSetItemDenormalized[]; itemsCounter: number; totalQuantity: number; } | undefined; }; export default useWishlistSet;