using StabilityMatrix.Core.Models; using StabilityMatrix.Core.Models.Database; namespace StabilityMatrix.Core.Services; public interface IModelIndexService { Dictionary> ModelIndex { get; } /// /// Refreshes the local model file index. /// Task RefreshIndex(); /// /// Starts a background task to refresh the local model file index. /// void BackgroundRefreshIndex(); /// /// Get all models of the specified type from the existing (in-memory) index. /// IEnumerable GetFromModelIndex(SharedFolderType types); /// /// Find all models of the specified SharedFolderType. /// Task> FindAsync(SharedFolderType type); /// /// Find all models with the specified Blake3 hash. /// Task> FindByHashAsync(string hashBlake3); /// /// Remove a model from the index. /// Task RemoveModelAsync(LocalModelFile model); }