import 'dart:async'; import 'package:immich_mobile/domain/models/log.model.dart'; abstract interface class ILogRepository { /// Inserts a new log into the DB FutureOr create(LogMessage log); /// Bulk insert logs into DB FutureOr createAll(Iterable log); /// Fetches all logs FutureOr> getAll(); /// Clears all logs FutureOr deleteAll(); /// Truncates the logs to the most recent [limit]. Defaults to recent 250 logs FutureOr truncate({int limit = 250}); }