import { type Bag, type Config, type PostBagItem, type PostBagItemData, type PostBagItemQuery } 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 add a bag item. * * @param postBagItem - Post bag item client. * * @returns Thunk factory. */ declare const addBagItemFactory: (postBagItem: PostBagItem) => (bagId: Bag['id'], data: PostBagItemData, query?: PostBagItemQuery, metadata?: BagItemActionMetadata, config?: Config) => (dispatch: Dispatch, getState: () => StoreState, { getOptions, }: GetOptionsArgument) => Promise; export default addBagItemFactory;