import { type Bag, type BagItem, type Config, type PatchBagItem, type PatchBagItemData, type PatchBagItemQuery } from '@farfetch/blackout-client'; import type { BagItemActionMetadata } from '../../types/index.js'; import type { Dispatch } from 'redux'; import type { GetOptionsArgument, StoreState } from '../../../types/index.js'; /** * Creates a thunk factory configured with the specified client to update a bag * item with given data. * * @param patchBagItem - Patch bag item client. * * @returns Thunk factory. */ declare const updateBagItemFactory: (patchBagItem: PatchBagItem) => (bagId: Bag['id'], bagItemId: BagItem['id'], data: PatchBagItemData, query?: PatchBagItemQuery, metadata?: BagItemActionMetadata, config?: Config) => (dispatch: Dispatch, getState: () => StoreState, { getOptions, }: GetOptionsArgument) => Promise; export default updateBagItemFactory;