// Stub pour les plateformes non-web
class Window {
  Navigator? get navigator => null;
  CacheStorage? get caches => null;
}

class Navigator {
  ServiceWorkerContainer? get serviceWorker => null;
}

class ServiceWorkerContainer {
  Future<List<ServiceWorkerRegistration>>? getRegistrations() => null;
}

class ServiceWorkerRegistration {
  Future<bool> unregister() => Future.value(false);
}

class CacheStorage {
  Future<List<String>> keys() => Future.value([]);
  Future<bool> delete(String name) => Future.value(false);
}

final Window window = Window();