import '../../contracts/auth.dart';

abstract class SessionRepository {
  Future<SessionData> set(SessionData session);


  Future<void> setMany(List<SessionData> sessions);


  Future<void> replaceAll(List<SessionData> sessions, {String? activeServerId});

  Future<SessionData?> getByServerId(String serverId);
  Future<SessionData?> getActive();
  Future<String?> getActiveServerId();
  Future<List<SessionData>> listAll();
  Future<void> setActive(String serverId);
  Future<void> clear([String? serverId]);
}
