1 | /**
|
2 | * Check whether the link is external
|
3 | * @param {String} input The url to check
|
4 | * @param {String} input The hostname / url of website
|
5 | * @param {Array} input Exclude hostnames. Specific subdomain is required when applicable, including www.
|
6 | * @returns {Boolean} True if the link doesn't have protocol or link has same host with config.url
|
7 | */
|
8 | declare function isExternalLink(input: string, sitehost: string, exclude: string[]): boolean;
|
9 | export = isExternalLink;
|