import 'dart:collection'; /// Web 平台事件持久化:内存 only,所有持久化操作为空实现。 /// Web 会话通常短暂,不需要跨页面持久化事件。 class EventPersistenceImpl { Future init() async {} String? get debugReportEventLogFilePath => null; void appendDebugReportEvent(Map event) {} void bufferEvent(Map event) {} void persistCriticalEvent(Map event) {} Future>> loadEvents({ required Queue> queue, required int maxQueueSize, required int maxCacheLines, required bool Function(String) isEventTypeEnabled, }) async => const []; Future removeEvents(List> events) async {} Future markInFlight(List> events) async {} Future clearInFlight() async {} Future clearCache() async {} void flushBuffer() {} Future flushBufferAsync() async {} }