import 'dart:async'; import 'package:immich_mobile/domain/models/log.model.dart'; abstract class ILogRepository { /// Fetches all logs FutureOr> fetchAll(); /// Inserts a new log into the DB FutureOr add(LogMessage log); /// Bulk insert logs into DB FutureOr addAll(List log); /// Clears all logs FutureOr clear(); /// Truncates the logs to the most recent [limit]. Defaults to recent 250 logs FutureOr truncateLogs({int limit = 250}); }