import { ApplicationManifest } from "../../HDLKiosk/kernel/application/types.js"; import { ApplicationRuntime, ApplicationRuntimeSnapshot } from "../../HDLKiosk/kernel/application/runtime.js"; import { KioskRuntimeBindings, KioskSession } from "../runtime/types.js"; import { KioskScreens, KioskSessionViewProps } from "./KioskSurfaces.js"; import React from "react"; //#region src/components/kiosk/ui/KioskApplication.d.ts type Runtime = ApplicationRuntime; interface KioskEntryProps { isActive: boolean; start: Runtime['start']; /** Cancel an unpublished manual start without disposing an established sale. */ cancelStart?(): void; pending: boolean; failure?: ApplicationRuntimeSnapshot['lastStartFailure']; } interface KioskApplicationProps { manifest: ApplicationManifest; /** Keep the runtime binding stable for the lifetime of this device/business scope. */ runtime?: KioskRuntimeBindings; isActive?: boolean; /** Manual workflow to open when entering or completing a session. Omit for a standby page. */ initialWorkflow?: string; screens?: KioskScreens; renderEntry?(entry: KioskEntryProps): React.ReactNode; /** The layout may release its session after policy checks and asynchronous business cleanup. */ renderSession?(view: KioskSessionViewProps, releaseSession: (options?: { deactivate?: boolean; }) => void): React.ReactNode; } /** A device owns one workflow session. Hiding the view stops new triggers while the * current session can finish in-flight external operations. Unmount releases both. */ declare function KioskApplication({ manifest, runtime, isActive, ...presentation }: KioskApplicationProps): React.JSX.Element | null; //#endregion export { KioskApplication, KioskApplicationProps, KioskEntryProps };