namespace BookReader.Services;

public interface ISettingsService
{
    Task<string> GetAsync(string key, string defaultValue = "");
    Task SetAsync(string key, string value);
    Task<int> GetIntAsync(string key, int defaultValue = 0);
    Task SetIntAsync(string key, int value);
    Task<double> GetDoubleAsync(string key, double defaultValue = 0);
    Task SetDoubleAsync(string key, double value);
    Task<Dictionary<string, string>> GetAllAsync();

    Task SetSecurePasswordAsync(string password);
    Task<string> GetSecurePasswordAsync();
    Task ClearSecurePasswordAsync();
}
