/** * Service Worker detection — inspects SW registrations, cache storage, background * sync queues, and PWA installability for a crawled page. * Surfaces offline-first contracts and push-capable surfaces that HTTP-only * crawlers cannot observe. */ export interface SwRegistration { scope: string; scriptURL: string | null; state: 'active' | 'installing' | 'waiting' | 'none'; updateViaCache: string; } export interface SwCacheEntry { cacheName: string; entryCount: number; sampleUrls: string[]; } export interface BackgroundSyncInfo { scope: string; pendingTags: string[]; } export interface PwaInfo { isInstallable: boolean; manifestUrl: string | null; hasPushPermission: boolean; } export interface ServiceWorkerResult { supported: boolean; active: boolean; registrations: SwRegistration[]; cacheStorages: SwCacheEntry[]; backgroundSync: BackgroundSyncInfo[]; pwa: PwaInfo; totalCachedEntries: number; } export declare function inspectServiceWorker(page: any): Promise;