interface visitDataInterface { [key: string]: string; } declare function rawData(): any; interface urlParameterMapInterface { [key: string]: [string]; } declare function setOption(key: string, value: any): void; declare function get(): visitDataInterface; /** * A function that returns the domain name without subdomain. * While the function isn't perfect, it tries to account for common two-part top-level-domains * in such a fashion that if the second-level-domain is part of a pre-defined list and the * full hostname has at least two dots, the function returns the join of the last three * parts. In all other cases, the function returns the last two parts of the hostname. * * @param {string} url - the url in question * @param {ex_SDLs} exceptionSLDs - the JSON list of second-level-domain exceptions * @returns {string} the domain name without subdomain */ declare function getDomain_(url: string, ex_SDLs?: string[]): string | null; declare const exportedForTesting: { getDomain_: typeof getDomain_; }; export { exportedForTesting, get, rawData, setOption, type urlParameterMapInterface, type visitDataInterface };