import 'package:background_downloader/background_downloader.dart'; abstract interface class IDownloadRepository { void Function(TaskStatusUpdate)? onImageDownloadStatus; void Function(TaskStatusUpdate)? onVideoDownloadStatus; void Function(TaskStatusUpdate)? onLivePhotoDownloadStatus; void Function(TaskProgressUpdate)? onTaskProgress; Future> getLiveVideoTasks(); Future download(DownloadTask task); Future cancel(String id); Future deleteAllTrackingRecords(); Future deleteRecordsWithIds(List id); }