/**
 * Worktree destroy operation for @cleocode/worktree.
 *
 * Removes the git worktree for a completed task. Integration (merge) is
 * performed separately via `completeAgentWorktreeViaMerge` (ADR-062) before
 * calling destroy. Destroy only removes the worktree filesystem entry and
 * optionally the task branch.
 *
 * @task T1161
 * @adr ADR-062
 */
import type { DestroyWorktreeOptions, DestroyWorktreeResult } from '@cleocode/contracts';
/**
 * Destroy the git worktree for a task.
 *
 * Steps:
 * 1. Check for uncommitted changes (dirty detection).
 * 2. Run pre-remove hooks.
 * 3. Unlock the worktree (`git worktree unlock`).
 * 4. Remove the worktree directory (`git worktree remove --force`).
 * 5. Optionally delete the task branch.
 * 6. Run post-destroy hooks.
 *
 * Integration (merging commits back to the target branch) is performed by
 * `completeAgentWorktreeViaMerge` before this function is called. Non-fatal
 * errors are captured in the result's `error` field. The caller decides
 * whether to propagate them.
 *
 * @param projectRoot - Absolute path to the project root directory.
 * @param options - Destroy options including task ID and optional branch deletion.
 * @returns Structured result of the destroy operation.
 *
 * @task T1161
 * @adr ADR-062
 */
export declare function destroyWorktree(projectRoot: string, options: DestroyWorktreeOptions): Promise<DestroyWorktreeResult>;
//# sourceMappingURL=worktree-destroy.d.ts.map