import { CancellationToken } from "../../../../base/common/cancellation.js"; import { IObservable } from "../../../../base/common/observable.js"; import { ISessionWorktreeCleanupSuggestion, ISessionWorktree, ISessionWorktreeMeasurementProgress, ISessionWorktreeCleanupCandidate, SessionWorktreeCleanupProgress } from "./sessionWorktreeCleanupService.js"; export declare const ISessionWorktreeCleanupService: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier; export interface ISessionWorktreeCleanupService { readonly _serviceBrand: undefined; readonly suggestion: IObservable; activate(): Promise; refresh(): Promise; suppressForWindow(): void; setAvailableDiskSpace(availableBytes: number | undefined): void; /** Publishes initial and measured worktrees progressively. forceRefresh bypasses cached results without starting a separate background scan. */ getWorktrees(minimumAgeDays: number, onUpdate?: (worktrees: readonly ISessionWorktree[], progress?: ISessionWorktreeMeasurementProgress) => void, token?: CancellationToken, forceRefresh?: boolean): Promise; refreshPendingCleanup(sessionIds: readonly string[], minimumAgeDays: number, onUpdate?: (worktrees: readonly ISessionWorktree[]) => void, token?: CancellationToken): Promise; cleanupWorktrees(candidates: readonly ISessionWorktreeCleanupCandidate[], onProgress?: (progress: SessionWorktreeCleanupProgress) => void): Promise; canForceCleanup(worktree: ISessionWorktree): boolean; forceCleanupWorktrees(worktrees: readonly ISessionWorktree[], onProgress?: (progress: SessionWorktreeCleanupProgress) => void): Promise; }