/** * @module transforms */ /** * * Sanitises and safely joins sections of a URL, this includes removing duplicate slashes in the path and * ensuring correctly formatted protocols. * * @param urlParts The URL parts to be joined and normalized * @return Returns the joined and normalized URL parts as a string * * @example * ```typescript * * const url = normalizeURL('https://cahilfoley.github.io/', '/utils') // => 'https://cahilfoley.github.io/utils' * ``` * */ export default function noramlizeURL(...urlParts: string[]): string;