/**
 * The folder of the repository's main checkout that matches `cwd` inside a linked git worktree, or
 * undefined when `cwd` is not inside one. A linked worktree is the same repository as its main
 * checkout, but tools that run one agent per worktree (Orca's `~/orca/workspaces/<repo>/<name>`)
 * put it outside the main checkout, where no saved decision covers it. Reads the files
 * `git worktree add` writes, asynchronously, and never spawns git. Accepted only when the admin dir
 * points back at this `.git` file and the common dir is the main checkout's own `.git` directory;
 * bare repositories, `--separate-git-dir` clones and submodules have no main checkout to inherit from.
 * As in git, a worktree folder deleted without `git worktree prune` keeps its admin record, so a folder
 * recreated at that path with a `.git` file the record points back at is that worktree again.
 */
export declare function linkedWorktreeMainCheckoutDir(cwd: string): Promise<string | undefined>;
//# sourceMappingURL=linked-worktree-checkout.d.ts.map