import { type Config, type GetCheckoutOrderResponse, type PostCheckoutOrder, type PostCheckoutOrderDataWithBag, type PostCheckoutOrderDataWithItems } from '@farfetch/blackout-client'; import type { Dispatch } from 'redux'; import type { GetOptionsArgument } from '../../../types/getOptionsArgument.types.js'; import type { StoreState } from '../../../types/storeState.types.js'; /** * Method responsible for creating the checkout order. Note: The checkout entity * state will contains the orderStatus which is used to keep track of the latest * error when creating a new checkout order. * * @param postCheckoutOrder - Post checkout client. * * @returns Thunk factory. */ declare const createCheckoutOrderFactory: (postCheckoutOrder: PostCheckoutOrder) => (data: PostCheckoutOrderDataWithItems | PostCheckoutOrderDataWithBag, config?: Config) => (dispatch: Dispatch, getState: () => StoreState, { getOptions, }: GetOptionsArgument) => Promise; export default createCheckoutOrderFactory;