import { CardReader, PaymentMethod } from "../../../checkout/types.js"; import { PaymentMethodRuntimeRef } from "../../../checkout/paymentRuntime/PaymentMethodRuntime.js"; //#region src/components/kiosk/runtime/operations/paymentCommands.d.ts interface PaymentOptionsContext { channel: string; readPreparedMethods(): PaymentMethod[] | undefined; fetchMethods(): Promise; applyPreferences(methods: PaymentMethod[]): Promise; interaction: unknown; } interface PaymentOptions { methods: Promise | PaymentMethod[]; /** Slow reader discovery does not delay displaying the payment methods. */ terminal?: Promise<{ readers: CardReader[]; deviceNumber: string; }>; } interface PaymentAttemptPorts { readonly method: Readonly; readonly amount: number; readonly channel: string; readonly requiresStaffAuthorization: boolean; assertCurrent(): void; executeDevicePayment(provider?: PaymentMethodRuntimeRef['execute']): Promise; authorizeOnMainScreen(): Promise; } interface PaymentSyncPort { synchronize(): Promise; } //#endregion export { PaymentAttemptPorts, PaymentOptions, PaymentOptionsContext, PaymentSyncPort };