using System;
using System.Collections.Generic;
namespace Jellyfin.Plugin.Herald.Stats;
///
/// Persistence for daily watch-time aggregates.
///
public interface IWatchStatsStore
{
///
/// Adds increments to the daily aggregates.
///
/// The increments.
void Add(IReadOnlyCollection increments);
///
/// Gets the aggregates from a day onwards.
///
/// The first day to include.
/// The aggregates.
IReadOnlyList GetSince(DateOnly from);
///
/// Deletes aggregates older than a day.
///
/// The first day to keep.
/// The number of deleted rows.
int DeleteBefore(DateOnly cutoff);
}