/** * Lightweight outbound internet connectivity check. * * Probes a reliable public endpoint to determine if the current machine * has working outbound internet access. Used during provider-error handling * to distinguish "the provider's API is down" from "our internet is down" — * the two need different remediation (wait vs. fix local network). * * The result is cached for a short TTL so rapid successive checks don't * hammer the probe target. */ /** * Returns `true` when the probe endpoint responds successfully (any HTTP * status that isn't a server-side failure), `false` on network error or * timeout. The result is cached for `ttlMs` (default 30 s). * * Probing `1.1.1.1` (Cloudflare DNS) is intentional: it's a CDN-backed * static page served from virtually every PoP, so a failure almost certainly * means the local network is down rather than the probe target being * unreachable. */ export declare function checkConnectivity(opts?: { /** Probe URL. Default: https://1.1.1.1 */ probeUrl?: string; /** Per-request timeout in ms. Default: 5000 (5 s). */ timeoutMs?: number; /** Cache TTL in ms. Default: 30000 (30 s). Set 0 to force a fresh probe. */ ttlMs?: number; }): Promise; /** * Reset the cached connectivity result so the next call performs a fresh * probe. Useful during error recovery when the network state may have * changed. */ export declare function resetConnectivityCache(): void; //# sourceMappingURL=connectivity.d.ts.map