renew-ip
Version:
A module for renewing 4G/LTE IP addresses on tethered Android phones from Node JS.
29 lines • 893 B
TypeScript
import { Debugger } from "debug";
import { IpHistory } from "./types";
/**
* Export a debug module for the package.
* @type {debug.Debugger}
*/
export declare const debug: Debugger;
/**
* Pauses for a specified duration.
*
* @param {number} ms
* @return {Promise<void>}
*/
export declare const waitForTimeout: (ms: number) => Promise<void>;
/**
* Slower devices can take a while to reconnect, so loop to try get a connection.
*
* @param {number} maxAttempts
* @return {Promise<boolean>}
*/
export declare const hasConnection: (maxAttempts?: number) => Promise<boolean>;
/**
* Pops the last ip history from a history set and attempts to return the ip attribute.
*
* @param {Set<IpHistory>} history
* @return {string | undefined}
*/
export declare const getLastIp: (history: Set<IpHistory>) => string | undefined;
//# sourceMappingURL=utils.d.ts.map