/** * Cleanup Runner -- Programmatic API for the worktree cleanup CLI. * * Exports `runCleanup()` so worktree cleanup can be invoked from code * without going through process.argv / process.env / process.exit. */ export interface CleanupRunnerConfig { /** Show what would be cleaned up without removing (default: false) */ dryRun?: boolean; /** Force removal even if worktree appears active (default: false) */ force?: boolean; /** Custom worktrees directory (default: ../{repoName}.wt) */ worktreePath?: string; /** Git root for default worktree path (default: auto-detect) */ gitRoot?: string; /** Skip worktree cleanup (default: false) */ skipWorktrees?: boolean; /** Skip branch cleanup (default: false) */ skipBranches?: boolean; } export interface WorktreeCleanupResult { scanned: number; orphaned: number; cleaned: number; skipped: number; errors: Array<{ path: string; error: string; }>; } export interface CleanupResult extends WorktreeCleanupResult { branches: BranchCleanupResult; } export interface BranchCleanupResult { scanned: number; deleted: number; errors: Array<{ branch: string; error: string; }>; } export declare function getGitRoot(): string; export declare function runCleanup(config?: CleanupRunnerConfig): CleanupResult; //# sourceMappingURL=cleanup-runner.d.ts.map