using Microsoft.SharePoint.Client; using SharepointToolbox.Core.Models; namespace SharepointToolbox.Services; public interface IVersionCleanupService { /// /// Enumerates document libraries (filtered by /// when non-empty) and deletes historical file versions per file according to /// and . /// The current published version is never touched. Returns one result row per file /// where at least one version was inspected. /// Task> DeleteOldVersionsAsync( ClientContext ctx, VersionCleanupOptions options, IProgress progress, CancellationToken ct); /// /// Lists non-hidden document libraries on the site. Used by the library picker /// so callers can present a checkbox UI. /// Task> ListLibraryTitlesAsync( ClientContext ctx, CancellationToken ct); }