import type { Readable } from "svelte/store"; export declare type NetworkType = "bluetooth" | "cellular" | "ethernet" | "none" | "wifi" | "wimax" | "other" | "unknown"; export declare type NetworkEffectiveType = "slow-2g" | "2g" | "3g" | "4g" | undefined; export interface NetworkState { is_supported: Readable; /** * If the user is currently connected. */ online: Readable; /** * The time since the user was last connected. */ offline_at: Readable; /** * At this time, if the user is offline and reconnects */ online_at: Readable; /** * The download speed in Mbps. */ downlink: Readable; /** * The max reachable download speed in Mbps. */ downlink_max: Readable; /** * The detected effective speed type. */ effective_type: Readable; /** * The estimated effective round-trip time of the current connection. */ rtt: Readable; /** * If the user activated data saver mode. */ save_data: Readable; /** * The detected connection/network type. */ type: Readable; } /** * Reactive Network status. * * @param options */ export declare function network(): NetworkState;