import { NativeModule } from "../managers/NativeModuleHelper"; import { NetworkInfoModule } from "../interfaces/NetworkInfoModule"; import { NativeModuleCallbackManager } from "../managers/NativeModuleCallbackManager"; import { NativeModuleResponse } from "../interfaces/NativeModuleResponse"; export default class NetworkInfoModuleImpl extends NativeModule implements NetworkInfoModule { constructor(nativeModuleCallbackManager: NativeModuleCallbackManager); /** * This is used to get an effective network type - 2G, 3G, WiFi on the device. Useful to limit slow network connection devices. */ getNetworkEffectiveType(): Promise>; /** * This is used to check if the user is connected to internet or not. * returns true/false. */ getNetworkConnectivity(): Promise>; }