import type { createOrder, OrderState, addToCart } from '../reducers/OrderReducer'; type TAddToCartParams = Omit[number], 'buyNowMode' | 'state' | 'dispatch' | 'setLocalOrder' | 'errors' | 'checkoutUrl' | 'persistKey' | 'config'>; type TCreateCartParams = Pick[number], 'orderAttributes' | 'orderMetadata'>; interface TReturnOrder extends Omit { /** Refetch the current order and update the context */ reloadOrder: () => Promise; /** Allow to add a SKU or a Bundle to the order stored in the context */ addToCart: (params: TAddToCartParams) => ReturnType; /** Allow to create a new order and store it in the OrderContainer context */ createOrder: (params: TCreateCartParams) => Promise; } /** * React Hook that provides access to the order context stored in the `` component. **/ export declare function useOrderContainer(): TReturnOrder; export default useOrderContainer;