@promptbook/google
Version:
Promptbook: Turn your company's scattered knowledge into AI ready books
12 lines (11 loc) • 514 B
TypeScript
/**
* Normalizes a domain-like string into a comparable hostname form.
*
* The returned value is lowercased and stripped to hostname only
* (protocol, path, query, hash, and port are removed).
*
* @param rawDomain - Raw domain value (for example `my-agent.com` or `https://my-agent.com/path`).
* @returns Normalized hostname or `null` when the value cannot be normalized.
* @private utility for host/domain matching
*/
export declare function normalizeDomainForMatching(rawDomain: string): string | null;