import type { RemoveResult, WorktreeEntry, WorktreeIdentity } from '../../../modules/worktree-management/entities/worktree/worktree.schema.js';
import type { TrackedMr } from '../../../modules/tracking/entities/tracking/trackedMr.js';
export interface SweepTrackingGateway {
    getById(projectPath: string, mrId: string): TrackedMr | null;
}
export interface SweepRepository {
    localPath: string;
    enabled: boolean;
}
export interface SweepStaleWorktreesDependencies {
    listEntries: () => Promise<WorktreeEntry[]>;
    removeWorktree: (identity: WorktreeIdentity) => Promise<RemoveResult>;
    trackingGateway: SweepTrackingGateway;
    getRepositories: () => SweepRepository[];
    now: () => Date;
}
export interface SweepSummary {
    scanned: number;
    removed: number;
    failures: number;
}
export declare function sweepStaleWorktrees(deps: SweepStaleWorktreesDependencies): Promise<SweepSummary>;
//# sourceMappingURL=sweepStaleWorktrees.usecase.d.ts.map