using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; public interface IConfigManager { void SetFilePath(string filePath); void SetDefault(Dictionary defalutConfig); T GetValue(string key); void SetValue(string key, [NotNull]T value) { ArgumentNullException.ThrowIfNull(key); SetValue(key, (object?)value); } void SetValue(string key, [NotNull]object? value); bool HasKey(string key); void SaveToFile(); void LoadFromFile(); }