/** * Shared URL helpers. */ /** * True when `url`'s hostname is exactly `domain` or a subdomain of it. * Avoids substring/suffix checks like `hostname.endsWith("senate.gov")`, * which also match look-alikes such as `evilsenate.gov`. * Returns false for missing or unparseable URLs. */ export declare function isHostOrSubdomain(url: string | URL | null | undefined, domain: string): boolean; //# sourceMappingURL=url.d.ts.map