import { type DecisionProvider, type UiAdapter, type UiOutcome, type UiSnapshot } from "../_types/execution/rapid-computer-use/contracts.js"; import { type UiDecisionReceipt } from "../_types/execution/rapid-computer-use/decision.js"; import { type Tool } from "../_types/execution/types.js"; import { type UiTraceArchive } from "../_types/execution/rapid-computer-use/trace.js"; import { type VisualUiOptions } from "../_types/execution/rapid-computer-use/visual.js"; import { AgenticRunner, type AgenticBackend } from "../_types/orchestrator/agenticRunner.js"; import { type AssertHostUiModelReady, type HostUiPlannerDiagnostics } from "./configured-planner.js"; import { type HostUiPhaseReceipt } from "./runner-ui-port.js"; import { type HostUiTaskSpec } from "./task-spec.js"; import { type HostUiPointReceipt } from "./configured-point.js"; import { type HostUiSessionReview, type HostUiReviewResult } from "./session-review.js"; export * from "./task-spec.js"; export { createConfiguredUiPlannerInfer } from "./configured-planner.js"; export type { AssertHostUiModelReady, HostUiPlannerReceipt, HostUiPlannerDiagnostics } from "./configured-planner.js"; export { createConfiguredUiPoint } from "./configured-point.js"; export type { HostUiPointReceipt } from "./configured-point.js"; export type { HostUiSessionReview, HostUiReviewResult } from "./session-review.js"; export type { UiDecisionReceipt } from "../_types/execution/rapid-computer-use/decision.js"; export type { HostUiPhaseReceipt } from "./runner-ui-port.js"; export interface HostUiSessionOptions extends HostUiPlannerDiagnostics { workingDirectory: string; stateDirectory: string; signal?: AbortSignal; onProgress?: (text: string) => void | Promise; assertModelReady?: AssertHostUiModelReady; /** Host injections for fixtures or an already owned semantic/visual surface. */ tool?: Tool; nativeAdapter?: UiAdapter & { close?: () => void | Promise; }; visual?: VisualUiOptions; onPolicyReceipt?: (receipt: UiDecisionReceipt) => void | Promise; onPointReceipt?: (receipt: HostUiPointReceipt) => void | Promise; /** Host phase wall times. Execute includes the tool's independent effect verification. */ onUiPhase?: (receipt: HostUiPhaseReceipt) => void; /** Bounded review of a completed task in the session's owned visible browser. */ review?: HostUiSessionReview; plannerBackendFactory?: (profile: import("./task-spec.js").HostUiModelProfile) => AgenticBackend; policyProvider?: DecisionProvider; verifyGoal?: (state: UiSnapshot, outcomes: readonly UiOutcome[]) => boolean | Promise; onRunner?: (runner: AgenticRunner) => void; } export interface HostUiSessionResult { status: "complete" | "needs_replan" | "cancelled"; plans: number; outcomes: UiOutcome[]; reason?: string; trace: UiTraceArchive; workflow?: { id: string; revision: string; }; persistenceError?: string; cleanupError?: string; terminalReceiptId?: string; objectiveLedgerPath?: string; review?: HostUiReviewResult; } /** Explicit local session. Construction and fixture mode issue no inference requests. */ export declare function runConfiguredHostUiSession(input: HostUiTaskSpec, options: HostUiSessionOptions): Promise;