export type ResolvedExternalSessionWorkspace = { path: string; isExecutionEnvironment: boolean; }; /** * Resolve the workspace directory for an external runtime session using the same precedence * as built-in agents: * 1. Bound execution environment (e.g. managed worktree / local checkout) * 2. Attached Project workspace root * 3. Explicit caller workspace override (headless CLI / automation / channel) * 4. Persisted per-session `workingDirectoryOverride` * 5. Agent's configured workspace or automatic default workspace (`~/.xopc/workspace-`) */ export declare function resolveExternalSessionWorkspace(params: { conversationId: string; agentId?: string; workspaceOverride?: string; }): ResolvedExternalSessionWorkspace; /** * Resolve and materialize (when not an execution environment) the canonical workspace directory * (`realpath`) for an external runtime session, matching built-in agent `SessionHydrator.workspace`. */ export declare function ensureExternalSessionWorkspaceCwd(params: { conversationId: string; agentId?: string; workspaceOverride?: string; }): Promise;