/** * RFC 6265 §5.1.3 — Domain matching utilities. */ /** * Canonicalize a domain string: lowercase and strip one leading dot. * Applied to both Domain attribute values and request hostnames. * * @example * canonicalizeDomain('.Example.COM') // → 'example.com' */ export declare function canonicalizeDomain(domain: string): string; /** * Returns true if `requestHost` is an IPv4 or IPv6 address. * IP addresses cannot be subdomain-matched — only exact host-only matching. */ export declare function isIpAddress(host: string): boolean; /** * RFC 6265 §5.1.3 — Domain matching. * * A cookie with domain `cookieDomain` is sent to `requestHost` if either: * - They are identical (case-insensitive), or * - `cookieDomain` is a suffix of `requestHost`, the character before the * suffix is a ".", and `requestHost` is not an IP address. * * @example * matchesDomain('example.com', 'api.example.com') // → true * matchesDomain('example.com', 'notexample.com') // → false */ export declare function matchesDomain(cookieDomain: string, requestHost: string): boolean;