import { NetworkStatusEventDetail } from '../types'; export interface NetworkStatus { connected: boolean; /** Capacitor connection type when known (`wifi`, `cellular`, `none`, `unknown`). */ connectionType?: string; } /** * Pure reducer for connectivity updates. Returns `prev` (referentially) when * nothing changed so React state updates are skipped for repeat events. */ export declare function reduceNetworkStatus(prev: NetworkStatus, next: NetworkStatusEventDetail): NetworkStatus; /** Initial connectivity snapshot from `navigator.onLine` (optimistic on SSR). */ export declare function readInitialNetworkStatus(nav?: { onLine?: boolean; } | undefined): NetworkStatus; /** * Live connectivity for offline UI. Seeded from `navigator.onLine`, then * updated by the shell-native `burdenoff:networkStatusChange` event (Capacitor * Network plugin on native) and the browser `online`/`offline` events, so it * is correct on web even when `bootNativeShell` was never called. */ export declare function useNetworkStatus(): NetworkStatus; //# sourceMappingURL=useNetworkStatus.d.ts.map