export declare function tldExists(host: string): boolean; export declare function getDomain(host: string): string | null; export declare function getSubdomain(host: string): string | null; export declare function getPublicSuffix(host: string): string | null; /** * @deprecated "isValid" is deprecated, please use "isValidHostname" instead. */ export declare function isValid(host: string): boolean; export declare function isValidHostname(host: string): boolean; export declare function extractHostname(host: string): string | null; export declare function parse(host: string): { hostname: ReturnType; isValid: ReturnType; isIp: boolean; tldExists: ReturnType; publicSuffix: ReturnType; domain: ReturnType; subdomain: ReturnType; }; export declare function fromUserSettings(options: { rules?: any; validHosts?: string[] | undefined; extractHostname?: ReturnType | undefined; }): { extractHostname: typeof extractHostname; isValidHostname: typeof isValidHostname; isValid: typeof isValid; parse: typeof parse; tldExists: typeof tldExists; getPublicSuffix: typeof getPublicSuffix; getDomain: typeof getDomain; getSubdomain: typeof getSubdomain; fromUserSettings: typeof fromUserSettings; };