export declare const DEFAULT_AGENT_ID = "__default__"; export interface InstanceRef { type: 'port' | 'path'; value: string; } export interface ProjectContext { sceneTree: unknown | null; scriptPaths: string[]; lastValidation: number; } export interface AgentState { agentId: string; selectedInstance: InstanceRef | null; activeProfile: string; contextCache: Map; lastSeen: number; isEphemeral: boolean; } export declare class AgentContextManager { private agents; private cleanupTimer; private engineQueue; private engineRunning; constructor(); getOrCreate(agentId: string | undefined): AgentState; remove(agentId: string): void; cleanup(): void; destroy(): void; enqueueEngine(op: () => Promise): Promise; private drainEngineQueue; /** 返回可持久化的 agent 列表(排除临时 agent)。 */ getPersistableAgents(): Array<[string, { selectedInstance: InstanceRef | null; activeProfile: string; }]>; }