using MongoDB.Driver;

namespace StellaOps.Authority.Storage.Mongo.Initialization;

/// <summary>
/// Persists indexes and configuration for an Authority Mongo collection.
/// </summary>
public interface IAuthorityCollectionInitializer
{
    /// <summary>
    /// Ensures the collection's indexes exist.
    /// </summary>
    ValueTask EnsureIndexesAsync(IMongoDatabase database, CancellationToken cancellationToken);
}
