/** * Network connection detection utilities */ import type { NetworkInfo, ConnectionType, EffectiveConnectionType } from '@plyaz/types/api'; export declare function getNetworkInfo(headers?: HeadersInit | Record): NetworkInfo; /** * Get connection type * * @returns Connection type (wifi, cellular, etc.) */ export declare function getConnectionType(): ConnectionType; /** * Get effective connection type (quality) * * @returns Effective type (4g, 3g, 2g, etc.) */ export declare function getEffectiveConnectionType(): EffectiveConnectionType; /** * Check if on cellular connection * * @returns True if using cellular data */ export declare function isCellularConnection(): boolean; /** * Check if on wifi connection * * @returns True if using wifi */ export declare function isWifiConnection(): boolean; /** * Check if data saver is enabled * * @returns True if data saver mode is on */ export declare function isDataSaverEnabled(): boolean; /** * Get network round-trip time (latency) * * @returns RTT in milliseconds or null */ export declare function getNetworkRTT(): number | null; /** * Get network downlink speed * * @returns Speed in Mbps or null */ export declare function getNetworkSpeed(): number | null; /** * Check if currently online * * @returns True if online */ export declare function isOnline(): boolean; /** * Check if currently offline * * @returns True if offline */ export declare function isOffline(): boolean; //# sourceMappingURL=connection.d.ts.map