/** * check if a url starts with http or https * @param {String} url */ export declare const isAbsoluteURL: (url: string) => boolean; /** * check if a url is a valid relative url * @param {String} url */ export declare const isRelativeURL: (url: string) => boolean; /** * check if a url contains whitespace * @param {String} url */ export declare const hasWhiteSpace: (url: string) => boolean; /** * check if a url is consider as valid * @param {String} url */ export declare const isValidUrl: (url: string) => boolean; /** * check if an absolute url can actually be opened. isValidUrl only checks the * http(s) prefix, so a malformed value like "https://#2E8B57" (empty host) * passes it but throws an uncaught SyntaxError in window.open. Relative urls * are always openable relative to the current page. * @param {String} url */ export declare const isOpenableUrl: (url: string) => boolean; export declare const getWindowLocation: () => Location; export declare const getWindowLocationSearch: () => string; /** * Navigate to a URL in a new tab or existing tab * @param url - The URL to navigate to * @param newTab - Whether to open in a new tab * @deprecated Use navigateToUrl({ url, newTab }) instead of navigateToUrl(url, newTab) */ export declare function navigateToUrl(url: string, newTab?: boolean): void; /** * Navigate to a URL in a new tab or existing tab * @param options - Options object with url and optional newTab flag */ export declare function navigateToUrl(options: { url: string; newTab?: boolean; }): void; //# sourceMappingURL=url.d.ts.map