/** * A linked git worktree or a submodule checkout stores `.git` as a pointer * FILE (`gitdir: /abs/path/to/main/.git/worktrees/`) rather than a * directory — the real git dir lives outside `cwd`. A sandboxed run only * grants `cwd`, so without this resolved dir every git command inside the * sandbox (including project hooks that shell out to `git rev-parse`) fails * with `fatal: not a git repository`. Returns `undefined` for a regular * repo (`.git` is a directory already covered by the cwd grant), a missing * repo, a malformed pointer, or a pointer that already resolves inside `cwd`. */ export declare function resolveLinkedGitDir(cwd: string): Promise;