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