/** * Hook to provide all kinds of data for the business logic attached to the bag * items. */ import { type BagItemActionMetadata } from '@farfetch/blackout-redux'; import type { BagItemId, HandleUpdateBagItemData } from './types/index.js'; import type { Config } from '@farfetch/blackout-client'; /** * Provides Redux actions and state access, as well as handlers for dealing with * bag items business logic. * * @param bagItemId - Bag item id to work on. * * @returns All the handlers, state, actions and relevant data needed to manage any bag item or product * bag-related operation. */ declare const useBagItem: (bagItemId: BagItemId) => { isLoading: boolean | undefined; error: import("@farfetch/blackout-client").BlackoutError | null | undefined; isFetched: boolean; data: import("@farfetch/blackout-redux").BagItemDenormalized | undefined; actions: { update: (data: HandleUpdateBagItemData, metadata?: BagItemActionMetadata, config?: Config) => Promise | undefined; remove: (metadata?: BagItemActionMetadata, config?: Config) => Promise; }; }; export default useBagItem;