import type { AgentSession, AgentSessionRef, AgentTurnInput } from "@tangle-network/agent-interface/environment-provider"; import type { AgentExactRunControlRef, AgentRunControlRef } from "@tangle-network/agent-interface"; import type { SandboxEvent } from "@tangle-network/sandbox"; import type { SandboxSessionLike } from "./tangle-types.js"; import type { ExecutionUsageLog } from "./tangle-usage-log.js"; type ExactExecutionEventStream = (options: { sessionId: string; executionId: string; since?: string; signal?: AbortSignal; controlRef?: AgentExactRunControlRef; }) => AsyncIterable; /** * @param retainedControl Whether the environment's narrowed capability * document grants retained control. Canonical cancellation is offered only * under that grant: a `cancelRun` method the deployment does not honor is an * action the caller selects and finds rejected on the wire. * @param interactionResponses Whether the environment's narrowed capability * document claims interaction responses. The method is offered only under * that claim, so a caller never selects an answer the deployment cannot * record. * @param usageLog Sink for the token usage each execution measured. The * environment observation reads it, because Sandbox reports usage per * execution result and never for the environment. */ export declare function sandboxSessionAsAgentSession(session: SandboxSessionLike, controlRef: AgentRunControlRef | undefined, provider: string, environmentId: string, dispatch: ((input: AgentTurnInput) => Promise) | undefined, exactExecutionEvents: ExactExecutionEventStream | undefined, retainedControl: boolean, interactionResponses: boolean, usageLog?: ExecutionUsageLog, nativeContinuation?: boolean): AgentSession; export {};