/** * Remove duplicated directories from the start of a path or url's path * * @param {string} url URL or pathname with possible duplicate subdirectory * @param {string} rootUrl Root URL with an optional subdirectory * @returns {string} URL or pathname with any duplicated subdirectory removed */ export declare const deduplicateSubdirectory: (url: string, rootUrl: string) => string; /** urlJoin * Returns a URL/path for internal use in Ghost. * @param {string[]} parts takes parts and concats those to a valid path/URL. * @param {Object} options * @param {string} options.rootUrl used for deduplicating any subdirectories * @return {string} URL concatinated URL/path of arguments. */ export declare function urlJoin(parts: string[], options: { rootUrl: string; }): string;