/** * Resolve the working directory whose store owns *session* coordination state. * * Session records exist to coordinate concurrent agents across a repository, so * they must live in one store per repository — not one per worktree. Secondary * worktrees check out the committed `.slope/config.json`, so resolving the store * from the local cwd gives every worktree its own empty database. That split is * the root of GH #630 / #631: `worktree-check` reads the primary checkout's * store (via the hook payload cwd) while `slope session list|prune|end` reads the * worktree's own, so the guard's printed remediation can never clear the * sessions the guard is blocking on. * * Returns the primary checkout when it owns SLOPE state, otherwise `cwd` * unchanged (single-checkout repos, non-git directories, and repos whose * primary checkout has no `.slope/config.json`). */ export declare function resolveSessionStoreCwd(cwd: string): string; /** * Resolve the primary checkout of the repository containing `cwd`. * * `git rev-parse --git-common-dir` yields the shared `.git` directory: `.git` * in the primary checkout, and a path to the primary's `.git` when run inside a * linked worktree. The primary checkout is that directory's parent. */ export declare function resolvePrimaryCheckout(cwd: string): string | null; /** * List every checkout of the repository containing `cwd` — the primary checkout * and all linked worktrees — with `cwd` itself always included. * * Sprint lifecycle state is stored per checkout (`.slope/sprint-state.json`), so * a closeout that only touches `cwd` leaves every sibling worktree reporting a * stale sprint and contradictory next actions (GH #624). */ export declare function listRepoWorktrees(cwd: string): string[]; //# sourceMappingURL=session-scope.d.ts.map