import '../../../../core/errors/result.dart';
import '../entities/server_config.dart';

abstract class SettingsRepository {
  Future<String?> getApiUrl();
  Future<Result<void>> saveApiUrl(String url);
  Future<String?> getLanguageCode();
  Future<Result<void>> saveLanguageCode(String code);
  Future<Result<ServerConfig>> getServerConfig();
  Future<Result<ServerConfig>> refreshServerConfig();
  Future<Result<bool>> getNotificationsEnabled();
  Future<Result<void>> setNotificationsEnabled(bool enabled);
  Future<Result<bool>> getDarkModeEnabled();
  Future<Result<void>> setDarkModeEnabled(bool enabled);
  Future<Result<void>> clearAllData();
}
