using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;

namespace StellaOps.Feedser.Storage.Mongo.ChangeHistory;

public interface IChangeHistoryStore
{
    Task AddAsync(ChangeHistoryRecord record, CancellationToken cancellationToken);

    Task<IReadOnlyList<ChangeHistoryRecord>> GetRecentAsync(string sourceName, string advisoryKey, int limit, CancellationToken cancellationToken);
}
