using AIStudio.Tools.Databases.IndexStore; using AIStudio.Tools.RAG; namespace AIStudio.Tools.Services; /// /// How many mails of a mailbox meet some conditions, as far as the index could tell. /// /// The number of mails, or null when the mailbox could not be counted. /// What kept the count from covering the whole mailbox, empty when nothing did. public sealed record MailCountOutcome(MailCountResult? Count, IReadOnlyList Gaps);