import { OperationReference } from "../../../HDLKiosk/kernel/application/types.js"; //#region src/components/kiosk/runtime/operations/command.d.ts /** Keep command-only inference on TypeScript versions before the built-in NoInfer (5.4). */ type NoInfer = [T][T extends any ? 0 : never]; /** A command's context contains only the capabilities for this invocation. */ interface SalesCommand extends OperationReference { readonly __context?: Context; } declare function defineSalesCommand(id: string): SalesCommand; interface SalesCommandBinding { readonly command: OperationReference; readonly execute: (context: never, input: never) => unknown; } declare function bindSalesCommand(command: SalesCommand, execute: (context: NoInfer, input: NoInfer) => NoInfer): SalesCommandBinding; type RunSalesCommand = (command: SalesCommand, context: NoInfer, input: NoInfer) => Output; //#endregion export { RunSalesCommand, SalesCommand, SalesCommandBinding, bindSalesCommand, defineSalesCommand };