export { N as NetworkMonitor, c as createNetworkMonitor } from './core-cexM76y4.js'; import { V as VpnLikelihood, C as ConnectionInfo, a as VpnDetectionConfig, R as ReachabilityConfig, N as NetworkStatus } from './types-BkhtOrZ5.js'; export { A as AlertHandlerOptions, b as ConnectionQuality, c as ConnectionType, d as ConsoleHandlerOptions, e as CustomHandlerOptions, E as EffectiveConnectionType, f as NetworkEventPayload, g as NetworkHandler, h as NetworkMessages, i as NetworkMonitorOptions, j as NetworkProviderProps, U as Unsubscribe, k as UseNetworkMonitorReturn, l as UseNetworkStatusReturn } from './types-BkhtOrZ5.js'; export { DomBannerHandlerOptions, alertHandler, consoleHandler, customHandler, domBannerHandler } from './handlers.js'; type NavigatorConnectionLike = { type?: string; effectiveType?: string; downlink?: number; rtt?: number; saveData?: boolean; addEventListener?: (type: "change", listener: () => void) => void; removeEventListener?: (type: "change", listener: () => void) => void; }; /** Subscribe to Network Information API `change` events. Returns an unsubscribe. */ declare function observeConnectionChange(listener: () => void): () => void; declare function readOnlineStatus(): NetworkStatus; /** * A connection is considered "slow" when the effective type is 2g/slow-2g, * or downlink is very low, or RTT is high. Thresholds are conservative so a * healthy 3g+ connection is never flagged. */ declare function isSlowConnection(conn: NavigatorConnectionLike | undefined): boolean; declare function buildConnectionInfo(params?: { reachable?: boolean | null; vpn?: VpnLikelihood; }): ConnectionInfo; /** * Performs an active reachability check. Resolves `true` if the endpoint is * reachable, `false` otherwise (timeout, network error, or captive-portal * redirect). Never throws. * * Uses `no-cors` with `redirect: "manual"` so captive portals are detectable: * a real internet connection yields an opaque response (`res.type === "opaque"`), * while a captive portal redirect yields `"opaqueredirect"`, which is treated * as unreachable. */ declare function probeReachability(config?: ReachabilityConfig): Promise; /** * Best-effort VPN/proxy likelihood. Entirely heuristic and client-side; returns * a confidence level, never a certainty. Order of precedence: * 1. A user-supplied `resolver` (authoritative if it returns a value). * 2. Timezone mismatch against `expectedTimezone`. * 3. Suspicious RTT relative to `suspiciousRttMs`. * 4. Optional WebRTC IP probe (only if `useWebRtc` is enabled). */ declare function detectVpn(config?: VpnDetectionConfig): Promise; export { ConnectionInfo, NetworkStatus, ReachabilityConfig, VpnDetectionConfig, VpnLikelihood, buildConnectionInfo, detectVpn, isSlowConnection, observeConnectionChange, probeReachability, readOnlineStatus };