declare type ConnectionType = 'bluetooth' | 'cellular' | 'ethernet' | 'mixed' | 'none' | 'other' | 'unknown' | 'wifi' | 'wimax'; declare type EffectiveConnectionType = '2g' | '3g' | '4g' | 'slow-2g'; interface NetworkState { readonly type?: ConnectionType; readonly effectiveType?: EffectiveConnectionType; readonly downlinkMax?: number; readonly downlink?: number; readonly rtt?: number; readonly saveData?: boolean; onchange?: EventListener; readonly online?: boolean; readonly since?: Date; } /** * Hook that returns network information */ export declare const useNetwork: () => NetworkState; export {};