import { type SweepReport } from '../install/fs-purge.js';
export interface CleanupOptions {
    dryRun: boolean;
    fix: boolean;
    repoRoot?: string;
}
export interface CleanupBudget {
    ttlMs: number;
    maxCount: number;
    maxBytes: number;
}
export interface CleanupReport {
    worktrees: SweepReport[];
    runs: SweepReport[];
    orphans: {
        paths: string[];
        bytesReclaimed: number;
    };
    totalBytesReclaimed: number;
    totalEntriesRemoved: number;
    dryRun: boolean;
}
export declare function resolveWorktreeBudget(): CleanupBudget;
export declare function resolveRunsBudget(): CleanupBudget;
export declare function runCleanup(options: CleanupOptions): Promise<CleanupReport>;
