import type { HookInput, GuardResult } from '../../core/index.js'; /** * Worktree-reuse guard: fires PreToolUse on EnterWorktree. * When the requested worktree name already exists, injects context * guiding the agent to reuse it (with sync commands) instead of * letting EnterWorktree fail on duplicate creation. */ export declare function worktreeReuseGuard(input: HookInput, cwd: string): Promise; /** List existing persistent worktrees with status info */ export declare function listWorktrees(cwd: string): Array<{ name: string; path: string; branch: string; behind: number; }>; //# sourceMappingURL=worktree-reuse.d.ts.map