using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using Kavita.Models.DTOs.SideNav; using Kavita.Models.Entities.User; namespace Kavita.API.Repositories; public interface IAppUserExternalSourceRepository { void Update(AppUserExternalSource source); void Delete(AppUserExternalSource source); Task GetById(int externalSourceId, CancellationToken ct = default); Task> GetExternalSources(int userId, CancellationToken ct = default); Task ExternalSourceExists(int userId, string name, string host, string apiKey, CancellationToken ct = default); }