UNPKG

@promptbook/remote-client

Version:

Promptbook: Turn your company's scattered knowledge into AI ready books

14 lines (13 loc) 624 B
import type { string_url } from '../../../types/typeAliases'; /** * Checks if an IP address or hostname is reserved for private networks or localhost. * * Note: There are two similar functions: * - `isUrlOnPrivateNetwork` *(this one)* which tests full URL * - `isHostnameOnPrivateNetwork` which tests just hostname * * @param {string} ipAddress - The IP address to check. * @returns {boolean} Returns true if the IP address is reserved for private networks or localhost, otherwise false. * @public exported from `@promptbook/utils` */ export declare function isUrlOnPrivateNetwork(url: URL | string_url): boolean;