/** * Session / project-root resolution shared by every `peaks worktree * ` sub-command. * * Extracted verbatim from `worktree-lease-commands.ts` so each * `worktree-lease--command.ts` sibling can resolve the same roots * without importing the registrar module (the dependency direction stays * one-way: siblings → this module → services). */ export declare function resolveSessionId(options: { session?: string; }, projectRoot: string): string; export declare function resolveProjectRoot(options: { project?: string; }): string; /** * Resolve the per-session runtime directory: `/.peaks/_runtime/`. * The runtime tree is gitignored; the spawn CLI writes the lease file * under `/worktree-leases/.json` and the worktree itself * under `/worktrees//`. */ export declare function joinPathSession(projectRoot: string, sessionId: string): string;