/// import { PaymentResultToastV2ViewModel } from "../../checkout/components/PaymentResultToastV2/types.js"; import { SalesSdkCheckoutPreparation } from "../../../plus/salesSdk/types.js"; import { WorkflowEvent } from "../../HDLKiosk/kernel/workflow/types.js"; import { KioskSession } from "../runtime/types.js"; import { CatalogRevealRequest } from "../components/ProductCatalog/index.js"; import { KioskSaleReceipt } from "../runtime/operations/checkoutOrder.js"; import { ShoppingStep } from "./shopping/types.js"; import { KioskCheckoutOptions } from "../app/contracts.js"; import { KioskSalesHostProps } from "./contracts.js"; import * as _$react from "react"; //#region src/components/kiosk/sales/useCheckout.d.ts interface Confirmation { event: WorkflowEvent; receipt: KioskSaleReceipt; delivered: boolean; continuing: boolean; } interface Attempt { paymentChannel: string; onSaleConfirmed: KioskCheckoutOptions['onSaleConfirmed']; origin: ShoppingStep; release(): void; preparation?: SalesSdkCheckoutPreparation; paymentNavigation?: { event: WorkflowEvent; pending: boolean; }; confirmation?: Confirmation; checkReceipt?: () => Promise; } declare function useCheckout(sale: KioskSalesHostProps, { actor, definition }: Pick, terminal: object, options?: KioskCheckoutOptions): { start: (this: unknown) => void; shop: (this: unknown, step: ShoppingStep) => Promise; cancel: (this: unknown, to?: ShoppingStep | undefined) => Promise; paid: (this: unknown, preparation: SalesSdkCheckoutPreparation, result: { orderId: string | number; orderSnapshot: any; paymentResult: PaymentResultToastV2ViewModel; }) => Promise; attempt: _$react.MutableRefObject; shoppingOrigin: _$react.MutableRefObject; error: string | undefined; reveal: CatalogRevealRequest | undefined; handedOff: boolean; hasAttempt: boolean; preparation: SalesSdkCheckoutPreparation | undefined; refreshPaymentPreparation: (this: unknown) => Promise; receipt: KioskSaleReceipt | undefined; awaitingContinuation: boolean; resumeConfirmed: (this: unknown) => Promise; continuing: boolean; paymentChannel: string; showPickupNumber: boolean; paymentNavigationBlocked: boolean; openPayment: (this: unknown) => Promise; unconfirmed: boolean; checkReceipt: (this: unknown) => Promise; checking: boolean; fulfillmentModal: _$react.JSX.Element | null; }; //#endregion export { useCheckout };