/**
 * Compose a url by host & path
 *
 * @param host Url host
 * @param path Url path
 * @returns Full composed url
 */
export declare const composeUrl: (host: string, path: string) => string;
/**
 * Convert unsafe url string to a safe version
 * to be used in URL class
 *
 * @param url Url to convert
 * @param path Path to append (optional)
 * @returns The safe URL object
 */
export declare const safeURL: (url: string | null | undefined, path?: string) => URL | null;
/**
 * Check if url is safe to use in URL class
 *
 * @param url Url to check
 * @param path Path to append
 * @returns True if safe
 */
export declare const isSafeURL: (url: string | null | undefined, path?: string) => boolean;
/**
 * Get the url origin
 *
 * @param baseUrl Reference url
 * @returns The url origin
 */
export declare const urlOrigin: (baseUrl: string) => string | undefined;
/**
 * Get the url hostname
 *
 * @param baseUrl Reference url
 * @returns The url hostname
 */
export declare const urlHostname: (baseUrl: string) => string | undefined;
/**
 * Get the url href
 *
 * @param baseUrl Reference url
 * @param path Path to append (optional)
 * @returns The url href
 */
export declare const urlPath: (baseUrl: string, path?: string) => string | undefined;
//# sourceMappingURL=urls.d.ts.map