import { OnDestroy } from '@angular/core'; import { Observable } from 'rxjs'; import * as i0 from "@angular/core"; /** * Network status information */ export interface NetworkStatus { isOnline: boolean; lastOnlineAt: number | null; lastOfflineAt: number | null; offlineDurationMs: number; } /** * Service for tracking network connectivity status */ export declare class FgsNetworkStatusService implements OnDestroy { private config; private ngZone; private isInitialized; private onlineHandler; private offlineHandler; private networkStatus; private wentOnline; private wentOffline; /** * Observable for network status changes */ networkStatus$: Observable; /** * Emitted when network comes back online (emits duration offline in ms) */ wentOnline$: Observable; /** * Emitted when network goes offline */ wentOffline$: Observable; private get debug(); /** * Check if currently online */ get isOnline(): boolean; /** * Get current offline duration (0 if online) */ get currentOfflineDurationMs(): number; /** * Initialize network status monitoring */ initialize(): void; /** * Handle online event */ private handleOnline; /** * Handle offline event */ private handleOffline; /** * Manually check network status * Useful for verifying actual connectivity beyond browser API */ checkConnectivity(testUrl?: string): Promise; /** * Get current network status */ getStatus(): NetworkStatus; /** * Cleanup on destroy */ ngOnDestroy(): void; /** * Debug logging */ private log; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } //# sourceMappingURL=network-status.service.d.ts.map