/** * Check if the format of a URL is valid or not. * * @param url - URL to be checked. * @returns True if the URL is valid, false otherwise. * @throws An error if URL's constructor throws an error other than `TypeError`. */ export declare function isValidURL(url: string): boolean; /** * Safely parse a string into a URL. * * @param url - The string to parse into a URL. * @returns A URL object if the parsing is successful, undefined otherwise. */ export declare function safeParseURL(url: string): URL | undefined; /** * Extracts the lowercased hostname from a URL-shaped string. Tolerates * bare hosts (without a scheme) and inputs that come back from APIs as * either `https://shop.myshopify.com` or `shop.myshopify.com`. * * @param value - A URL or bare host string, possibly null/undefined. * @returns The lowercased hostname, or undefined when the input is empty. */ export declare function extractHost(value: string | null | undefined): string | undefined; /** * Extracts the subdomain handle from a `*.myshopify.com` URL or host. * * @param value - A URL or host string, possibly null/undefined. * @returns The myshopify subdomain handle, or undefined when the input isn't a `*.myshopify.com` URL. */ export declare function extractMyshopifyHandle(value: string | null | undefined): string | undefined;