import type { HookInput, GuardResult } from '../../core/index.js'; /** * Worktree-merge guard: fires PreToolUse on Bash. * Detects `gh pr merge --delete-branch` in a worktree and rewrites the * command to drop `--delete-branch`, which fails because the worktree * holds the target branch. The merge itself succeeds but the exit code * is 1, causing the agent to think it failed and retry. */ export declare function worktreeMergeGuard(input: HookInput, cwd: string): Promise; //# sourceMappingURL=worktree-merge.d.ts.map