import { type Config, type PostWishlistItem, type PostWishlistItemData, type Wishlist } from '@farfetch/blackout-client'; import type { AddWishlistItemAction, WishlistItemActionMetadata } 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 an item with * the given data to the wishlist. * * @param postWishlistItem - Post wishlist item client. * * @returns Thunk factory. */ declare const addWishlistItemFactory: (postWishlistItem: PostWishlistItem) => (wishlistId: Wishlist['id'], data: PostWishlistItemData, metadata?: WishlistItemActionMetadata, config?: Config) => (dispatch: Dispatch, getState: () => StoreState, { getOptions, }: GetOptionsArgument) => Promise; export default addWishlistItemFactory;