import { SalesSdkScanResult } from "../../../../plus/salesSdk/types.js"; import { KioskScanKind } from "../../runtime/devices/scanner.js"; import { KioskSession } from "../../runtime/types.js"; import { SalesCommand } from "../../runtime/operations/command.js"; import { BigSaleContext } from "../../../bigSale/types.js"; //#region src/components/kiosk/sales/inputs/scan.d.ts declare const kioskScanTrigger: { readonly id: "onScan"; readonly mode: "automatic"; }; /** The identified kind is the manifest channel. The kernel validates unique workflow ownership. */ declare function startOnScan(first: KioskScanKind, ...rest: KioskScanKind[]): { trigger: "onScan"; channel: KioskScanKind; }[]; interface KioskScanInput { readonly code: string; readonly eventId: string; readonly kind: KioskScanKind; } interface KioskScanContext { readonly session: KioskSession; readonly sale: BigSaleContext; readonly signal: AbortSignal; applySale(): Promise; } type Disposition = 'continue' | 'stop' | void; type KioskScanConsumer = (input: KioskScanInput, context: KioskScanContext) => Disposition | Promise; type ScanCommand = SalesCommand> & { readonly kind: 'kiosk.scan'; }; declare function defineKioskScanCommand(id: string): ScanCommand; declare const salesScan: KioskScanConsumer; //#endregion export { KioskScanConsumer, KioskScanContext, KioskScanInput, defineKioskScanCommand, kioskScanTrigger, salesScan, startOnScan };