import { type UiPlanRejectionCode } from "../_types/execution/rapid-computer-use/planner.js"; import { type AgenticBackend } from "../_types/orchestrator/agenticRunner.js"; import type { HostUiActionGrant, HostUiModelProfile } from "./task-spec.js"; export type AssertHostUiModelReady = (profile: Readonly, signal: AbortSignal) => void | Promise; export interface HostUiPlannerReceipt { schema: "omnius.host-ui-planner-receipt.v1"; requestId: string; profile: Pick; latencyMs: number; promptSha256: string; replySha256: string; promptBytes: number; replyBytes: number; /** Syntactic plan validity only; this never grants authority or proves completion. */ status: "valid_plan" | "rejected"; rejectionCode?: UiPlanRejectionCode; /** Present only when trusted host code opts into capture; may contain personal task data. */ prompt?: string; reply?: string; promptTruncated?: boolean; replyTruncated?: boolean; payloadsRedacted?: boolean; } export interface HostUiPlannerDiagnostics { onPlannerReceipt?: (receipt: HostUiPlannerReceipt) => void | Promise; /** Explicit host-only consent for bounded prompt/reply retention, never read from a task document. */ capturePlannerPayloads?: boolean; } /** A fully specified host grant is also a finite output alternative; omissions stay exact. */ export declare function createHostUiPlannerResponseSchema(grants?: readonly HostUiActionGrant[]): Record; /** Fresh backend per call: never borrow or replace a running agent's abort owner. */ export declare function createConfiguredUiPlannerInfer(profile: HostUiModelProfile, options: { assertModelReady: AssertHostUiModelReady; assertCurrent: () => void; backendFactory?: (profile: HostUiModelProfile) => AgenticBackend; allowedActions?: readonly HostUiActionGrant[]; } & HostUiPlannerDiagnostics): (prompt: string, signal: AbortSignal) => Promise;