import type { Agent, AgentOutputType } from '../agent'; import { type RunState } from '../runState'; import type { SandboxRuntimeManager } from '../sandbox/runtime'; import type { SandboxMemoryAgentRunner } from '../sandbox/memory/generation'; import type { SandboxRuntimeModel } from '../sandbox/runtime/agentPreparation'; import type { Span } from '../tracing/spans'; import type { Trace } from '../tracing/traces'; import type { AgentInputItem } from '../types'; import type { ToolNameCollisionPolicy } from './runConfig'; export type SandboxMemoryPersistenceContext = { sdkSessionId?: () => Promise; inputOverride?: () => string | AgentInputItem[] | undefined; }; export declare function prepareSandboxInterruptedTurnResume>(args: { startingAgent: TAgent; state: RunState; sandboxRuntime: SandboxRuntimeManager; runConfigModel?: SandboxRuntimeModel; toolNameCollisionPolicy?: ToolNameCollisionPolicy; tracingParent?: Span | Trace; }): Promise; export declare function finalizeSandboxRuntime(args: { state: RunState>; sandboxRuntime: SandboxRuntimeManager; preserveSessionsForInterruption: boolean; finishAgentSpanForInterruption?: boolean; runError?: unknown; groupId?: string; memoryContext?: SandboxMemoryPersistenceContext; runAgent: SandboxMemoryAgentRunner; tracingParent?: Span | Trace; }): Promise; export declare function rehydrateInterruptedTurnExecutionTools>(args: { startingAgent: TAgent; state: RunState; sandboxRuntime: SandboxRuntimeManager; runConfigModel?: SandboxRuntimeModel; toolNameCollisionPolicy?: ToolNameCollisionPolicy; force?: boolean; tracingParent?: Span | Trace; }): Promise; export declare function isSandboxRuntimeAgent(agent: Agent): boolean;