import NetworkState from './NativeNetworkState'; import { NetworkType } from './NativeNetworkState'; import type { NetworkState as NetworkStateType, NetworkDetails, NetworkCapabilities } from './NativeNetworkState'; import { useNetworkState } from './useNetworkState'; export type { NetworkState as NetworkStateType, NetworkDetails, NetworkCapabilities, }; export { NetworkType, useNetworkState }; /** * High-level API wrapping native module with convenient helpers. * Platform: Android & iOS (unless otherwise noted in method JSDoc). */ export declare class ModernNetworkState { private static instance; private isListening; private constructor(); static getInstance(): ModernNetworkState; /** Get current network state (Android & iOS) */ getNetworkState(): Promise; /** Start listening to network state changes (Android & iOS) */ startListening(): void; /** Stop listening to network state changes (Android & iOS) */ stopListening(): void; /** Check if specific network type is available (Android & iOS; type coverage varies) */ isNetworkTypeAvailable(type: NetworkType): Promise; /** Get network strength (Android returns RSSI; iOS may return -1) */ getNetworkStrength(): Promise; /** Check if network is expensive (typically true on cellular) */ isNetworkExpensive(): Promise; /** Check if network is metered (typically true on cellular) */ isNetworkMetered(): Promise; /** Check if currently connected to WiFi (Android & iOS) */ isConnectedToWifi(): Promise; /** Check if currently connected to cellular (Android & iOS) */ isConnectedToCellular(): Promise; /** Check if internet is reachable (Android & iOS) */ isInternetReachable(): Promise; /** Get WiFi details if connected (Android; iOS may return null) */ getWifiDetails(): Promise; /** Get network capabilities (Android & iOS; fields coverage varies) */ getNetworkCapabilities(): Promise; /** Force refresh network state - useful when app comes to foreground (Android & iOS) */ forceRefresh(): void; } export declare const networkState: ModernNetworkState; export declare const getNetworkState: () => Promise; export declare const startNetworkStateListener: () => void; export declare const stopNetworkStateListener: () => void; export declare const isNetworkTypeAvailable: (type: NetworkType) => Promise; export declare const getNetworkStrength: () => Promise; export declare const isNetworkExpensive: () => Promise; export declare const isNetworkMetered: () => Promise; export declare const isConnectedToWifi: () => Promise; export declare const isConnectedToCellular: () => Promise; export declare const isInternetReachable: () => Promise; export declare const getWifiDetails: () => Promise; export declare const getNetworkCapabilities: () => Promise; export declare const forceRefresh: () => void; export default ModernNetworkState; //# sourceMappingURL=index.d.ts.map