import { type RunOptions } from './run.mts'; interface ReclaimEntry { readonly path: string; readonly branch: string; readonly status: 'reclaimed' | 'would reclaim' | 'kept'; readonly reason?: string; } export type ReclaimReport = { readonly dryRun: boolean; readonly worktrees: ReclaimEntry[]; } & ({ readonly hasMore: true; readonly nextAfter: string; } | { readonly hasMore: false; readonly nextAfter?: never; }); export interface ReclaimOptions { readonly prLimit?: number; readonly maxWorktrees?: number; readonly timeoutMs?: number; readonly after?: string; readonly now?: () => number; } /** Lists finished worktrees and, with `yes`, removes them with a plain (never forced) `git worktree remove`. */ export declare function reclaimWorktrees(yes: boolean, runtime: RunOptions, options?: ReclaimOptions): ReclaimReport; export declare function formatReport(report: ReclaimReport): string; export {};