import type { Agent, AgentOutputType } from '../../agent'; import type { RunState } from '../../runState'; import type { SandboxClient } from '../client'; import type { SandboxSessionLike, SandboxSessionState } from '../session'; import type { SerializedSandboxSessionEntry, SerializedSandboxState } from './sessionState'; export type LivePreservedOwnedSessionEntry = { agentKey: string; backendId: string; currentAgentName: string; session: SandboxSessionLike; reuseRejected?: boolean; }; export declare function rememberLivePreservedOwnedSessions(args: { state: RunState>; serializedState: SerializedSandboxState; sessionsByAgentKey: ReadonlyMap>; }): void; export declare function forgetLivePreservedOwnedSessions(state: RunState>): void; export declare function hasRejectedLivePreservedOwnedSessions(state: RunState>): boolean; export declare function forgetLivePreservedOwnedSessionHandle(args: { state: RunState> | undefined; session: SandboxSessionLike; }): void; export declare function rememberRejectedLivePreservedOwnedSessionHandle(args: { state: RunState> | undefined; source: LivePreservedOwnedSessionEntry; session: SandboxSessionLike; }): void; export declare function rejectLivePreservedOwnedSessionHandle(args: { state: RunState> | undefined; session: SandboxSessionLike; }): void; export declare function livePreservedOwnedSessionEntries(state: RunState>): LivePreservedOwnedSessionEntry[]; export declare function preservedOwnedSessionAgentKeysWithoutLiveReuse(serializedState: SerializedSandboxState): Set; export declare function livePreservedOwnedSession(args: { runState: RunState> | undefined; client: SandboxClient; agentKey: string; serializedEntry: SerializedSandboxSessionEntry | undefined; }): LivePreservedOwnedSessionEntry | undefined;