import type * as C from "./contracts.js"; import { type FakeExecution, type FakeRunnerContext, type OwnerLease, type TaskLease, TaskSupervisor, type TrustedTaskHost, type WaitLease } from "./supervisor.js"; export type AgentTaskRunnerFactory = (context: FakeRunnerContext, intent: C.AgentIntent) => FakeExecution; export type AgentTaskHostBinding = Omit; /** Internal trusted-host seam. Bind actual host identity, never model-supplied scope. */ export declare class AgentTaskHost { private readonly supervisor; private readonly owner; private binding; private readonly messageWaits; /** Stage replacement updates callbacks, never native identity or ownership. */ updateBinding(binding: Omit): void; /** Internal projection binding; never serialize these native-backed capabilities. */ get ownerBinding(): { supervisor: TaskSupervisor; owner: OwnerLease; waitForTask: AgentTaskHost["waitForTask"]; }; constructor(binding: AgentTaskHostBinding); startAgentTask(intent: C.AgentIntent, operation: C.OperationId, runner: AgentTaskRunnerFactory, schedule?: (dispatch: () => Promise) => void): Promise>; resolveTask(taskId: C.TaskId): C.Result; observeAgentLaunch(taskId: C.TaskId, policy?: C.WaitPolicy, onRegistered?: (yieldWait: (reason: C.YieldReason) => C.Result) => void): Promise>; waitForTask(taskId: C.TaskId, budgetMs?: number, onRegistered?: (wait: WaitLease) => void): Promise>; /** Let inbound routing reach SDK admission instead of waiting for this owner to become idle. */ get hasActiveTaskWaits(): boolean; /** Incoming owner messages release observation only, never the child execution. */ yieldTaskWaits(reason: C.YieldReason): void; private trackMessageWait; cancelTask(taskId: C.TaskId, cause: C.CancelCause): Promise<{ ok: false; error: C.WaitError; }> | Promise>; watchOwnerTasks(cursor?: C.Cursor): C.Result; close(cause: C.OwnerCloseCause): Promise>; private tasksPaused; /** Reversible execution hold; message admission and owner identity remain open. */ pauseTasks(): Promise; resumeTasks(): void; private authorizeTaskLaunch; } //# sourceMappingURL=agent-adapter.d.ts.map