import { type KernelPaths } from "./types.js"; /** * Canonical v2 worker worktree root: sibling of repo `.oms` (not under it), * keyed by canonical repository path digest. * * Runtime state stays under `/.oms/runtime-v2`. Worktrees intentionally * do not use that tree so `.oms` is never an ancestor of a worktree path. * Provider launch plans separately apply fail-closed Claude/Codex filesystem * policies; this layout additionally keeps state out of the writable worktree. */ export declare function resolveV2WorktreesRoot(workspaceRoot: string): string; /** True when `ancestor` is equal to or a path prefix of `path`. */ export declare function isPathAncestor(ancestor: string, path: string): boolean; /** * Phase gate: worktrees root must not live under repo-local `.oms` (or runtime). * This helper proves layout only; provider-specific sandbox tests prove access. */ export declare function assertWorktreesRootOutsideOms(paths: KernelPaths): void; /** * Canonical real MCP config path for Claude launch. * Absolute input only; leaf lstat + realpath containment (not ancestor walk). */ export declare function resolveCanonicalMcpConfigPath(mcpConfigPath: string, worktreePath: string, paths: KernelPaths, linkedWorktreeGitDir?: string): string; export declare function resolveKernelPaths(workspaceRoot: string, cwd?: string): KernelPaths;