using DynamicData.Binding; using StabilityMatrix.Core.Models; using StabilityMatrix.Core.Models.Database; using StabilityMatrix.Core.Models.FileInterfaces; namespace StabilityMatrix.Core.Services; public interface IImageIndexService { IndexCollection InferenceImages { get; } /// /// Gets a list of local images that start with the given path prefix /// Task> GetLocalImagesByPrefix(string pathPrefix); /// /// Refresh index for all collections /// Task RefreshIndexForAllCollections(); Task RefreshIndex(IndexCollection indexCollection); /// /// Refreshes the index of local images in the background /// void BackgroundRefreshIndex(); /// /// Removes a local image from the database /// Task RemoveImage(LocalImageFile imageFile); }