using Febe.Core.Domain; namespace Febe.Core.Storage; /// Probable duplicates waiting for Alberto (spec §8.3 duplicate_pair, §9.3, §9.5). public interface IDuplicateStore { /// /// Adds a pair. Idempotent: if the same pending pair (same sides) exists, it is returned unchanged. /// Task AddAsync(DuplicatePair pair, CancellationToken ct = default); Task GetAsync(long pairId, CancellationToken ct = default); /// Pending pairs in creation order, after . Task> ListPendingAsync(DuplicateOrigin? origin = null, long afterId = 0, int limit = 200, CancellationToken ct = default); Task CountPendingAsync(DuplicateOrigin? origin = null, CancellationToken ct = default); /// Records Alberto's decision. Applying it to files is the caller's job. Task DecideAsync(long pairId, DuplicateDecision decision, DateTimeOffset at, CancellationToken ct = default); }