UNPKG

@promptbook/remote-client

Version:

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

12 lines (11 loc) 446 B
import type { string_hostname } from '../../../types/typeAliases'; /** * Checks if an URL is reserved for private networks or localhost. * * Note: There are two similar functions: * - `isUrlOnPrivateNetwork` which tests full URL * - `isHostnameOnPrivateNetwork` *(this one)* which tests just hostname * * @public exported from `@promptbook/utils` */ export declare function isHostnameOnPrivateNetwork(hostname: string_hostname): boolean;