type Url = string; type Urls = string | Array; type ReturnUrls = Array | Array>; type ReturnUrl = Url | Promise; /** * Options to extract domain. */ type GetDomainOptions = { tld?: boolean; }; /** * @param {Urls} urls ["https://www.google.com", "https://www.github.com"] or "https://www.google.com" * @param {GetDomainOptions} opts `{ tld: true }` permit to get Top Level Domain like `*.co.uk` * @returns {Urls | Promise} Return URLs or a promise of URLs if the PSL lib is being used */ export default function extractDomain(urls: Urls, opts?: GetDomainOptions): ReturnUrl | ReturnUrls | null; export {};