@promptbook/azure-openai
Version:
Promptbook: Run AI apps in plain human language across multiple models and platforms
12 lines (11 loc) • 446 B
TypeScript
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;