import { type UiArgs, type UiOutcome, type UiPredicate, type UiSnapshot, type UiVerb } from "../_types/execution/rapid-computer-use/contracts.js"; import { type DecisionFamily } from "../_types/execution/rapid-computer-use/decision.js"; export interface HostUiModelProfile { endpoint: string; model: string; revision: string; protocol?: "ollama" | "openai-chat"; preflight?: { selectionFile: string; receiptFile: string; approvalFile: string; }; timeoutMs?: number; contextTokens?: number; } export type HostUiPointProfile = Omit & { kind: "moondream-point"; }; export interface HostUiActionGrant { verb: UiVerb; target: { role: string; name: string; }; args?: UiArgs; expect?: UiPredicate[]; } export interface HostUiTerminalCheck { target?: { role: string; name: string; }; expect: UiPredicate[]; } export interface HostUiTaskSpec { schema: "omnius.host-ui-task.v1"; goal: string; scope: { kind: "browser"; url: string; origin: string; headless?: boolean; } | { kind: "native"; app: string; }; allowedActions: HostUiActionGrant[]; terminal: HostUiTerminalCheck[]; planner: { kind: "fixture"; plan: { schema: "omnius.ui-plan.v1"; steps: Array>; }; } | ({ kind: "configured"; } & HostUiModelProfile); policy: { kind: "rules"; } | ({ kind: "system-one"; family: DecisionFamily; } & HostUiModelProfile); /** Explicit local vision selection; capture and input remain owned by the browser. */ visual?: HostUiPointProfile; maxActions: number; maxReplans: number; persistence?: { directory: string; allowPlaintextPersistence: true; workflowId?: string; }; replay?: { workflowId: string; revision: string; }; } /** A host/operator document; never infer grants, endpoints or completion from planner output. */ export declare function parseHostUiTaskSpec(input: unknown): HostUiTaskSpec; export declare function hostUiScopeMatches(spec: HostUiTaskSpec, state: UiSnapshot): boolean; /** Check a planned request before it can trigger a visual observation or inference. */ export declare function hostUiStepAllowed(spec: HostUiTaskSpec, step: import("../_types/execution/rapid-computer-use/contracts.js").UiStep): boolean; export declare function hostUiActionAllowed(spec: HostUiTaskSpec, state: UiSnapshot, action: import("../_types/execution/rapid-computer-use/contracts.js").UiAction): boolean; export declare function hostUiGoalSatisfied(spec: HostUiTaskSpec, state: UiSnapshot, outcomes: readonly UiOutcome[]): boolean;