UNPKG

842 BTypeScriptView Raw
1/**
2 * Copyright (c) Facebook, Inc. and its affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 *
7 * @format
8 */
9import { NativeEventEmitter } from 'react-native';
10declare const _default: {
11 eventEmitter: NativeEventEmitter;
12 configure: (config: Partial<import("./types").NetInfoConfiguration>) => void;
13 getCurrentState: (requestedInterface?: string | undefined) => Promise<import("./privateTypes").NetInfoNativeModuleState>;
14 addListener<K extends "netInfo.networkStatusDidChange">(type: K, listener: (event: import("./privateTypes").Events[K]) => void): void;
15 removeListeners<K_1 extends "netInfo.networkStatusDidChange">(type: K_1, listener: (event: import("./privateTypes").Events[K_1]) => void): void;
16};
17export default _default;
18
\No newline at end of file