UNPKG

@promptbook/remote-server

Version:

Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action

13 lines (12 loc) 517 B
/** * 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;