/**
 * Download helper function
 * @param url url of the file to be downloaded
 * @param type return type (eg. arraybuffer)
 */
export declare function download(url: string, type: XMLHttpRequestResponseType, customHeaders?: Map<string, string>, cookiesEnabled?: boolean): Buffer<ArrayBuffer> | undefined;
/**
 * Function to get the external IP address
 * @returns ip address or empty string
 */
export declare function getExternalIp(): string;
export declare function resolveHostToIP(host: string): string | null;
/**
 * Function to evaluate if a string is a valid IP address
 * @param ip the string to evaluate
 * @returns true if the string is a valid IP address or false otherwise
 */
export declare function isValidIP(ip: string): boolean;
/**
 * Function to validate a DNS hostname
 * @param hostname the hostname to validate
 * @returns true if the hostname is valid or false otherwise
 */
export declare function isValidHostname(hostname: string): boolean;
/**
 * Function to get the host from a URL
 * @param url the URL to parse
 * @returns the host or an empty string if the URL is invalid
 */
export declare function getHost(url: string): string;
