/**
 * Resolve the primary checkout root when a directory is a linked git
 * worktree.
 *
 * A linked worktree has a `.git` FILE containing
 * `gitdir: <primary>/.git/worktrees/<name>`; a primary checkout has a `.git`
 * directory. Parsing the file avoids spawning git — this runs inside
 * package-manager lifecycle scripts where every child process is a
 * measurable cost. Submodule `.git` files point at `.git/modules/<name>` and
 * deliberately do not match. The primary is only returned when its `.claude`
 * directory exists, mirroring install-claude-plugins.sh and the
 * install-pkgs.sh node_modules link (add08b409).
 * @param dir - Directory to inspect (typically the Lisa destDir)
 * @returns Primary checkout root, or null when dir is not a linked worktree
 *   of a reachable primary checkout
 */
export declare function resolvePrimaryWorktreeRoot(dir: string): Promise<string | null>;
//# sourceMappingURL=linked-worktree.d.ts.map