/** * @interface IParsedHostname * @description Represents the result of parsing a raw domain string. */ interface IParsedHostname { /** * The hostname to be used for domain extraction. * For IDNs, this will be the Unicode version. * @type {string} */ hostnameForExtraction: string; /** * The hostname parsed from the URL, potentially in Punycode. * Used for IP address checks. * @type {string} */ parsedUrlHostname: string; } /** * Parses a raw domain string to extract a clean hostname for processing. * This function handles URLs, IDNs (Internationalized Domain Names), and various edge cases. * @param {string} domain - The raw domain string to parse. * @returns {IParsedHostname} An object containing hostnames for extraction and IP checks. */ export declare function parseHostname(domain: string): IParsedHostname; export {};