using WebApp.Models;
namespace WebApp.Services;
///
/// Persists chapter settings to Data/appsettings.json.
///
public interface IChapterSettingsWriter
{
///
/// Writes the given chapter settings, preserving other top-level sections in the file.
///
Task WriteAsync(ChapterSettings settings, CancellationToken cancellationToken = default);
///
/// Updates only the competition year while preserving other chapter settings from configuration.
///
Task UpdateCompetitionYearAsync(string competitionYear, CancellationToken cancellationToken = default);
}