export default class UrlUtils { private _config; getSubdir: any; getSiteUrl: any; getAdminUrl: any; /** * Initialization method to pass in URL configurations * @param {Object} options * @param {Function} options.getSubdir * @param {Function} options.getSiteUrl * @param {Function} options.getAdminUrl Ghost instance admin URL * @param {String} [options.baseApiPath='/ghost/api'] static prefix for serving API. Should not te passed in, unless the API is being run under custom URL * @param {('content' | 'admin')} [options.defaultApiType='content'] default API type to be used * @param {Object} [options.slugs] object with 2 properties reserved and protected containing arrays of special case slugs * @param {Number} [options.redirectCacheMaxAge] * @param {String} [options.staticImageUrlPrefix='content/images'] static prefix for serving images. Should not be passed in, unless customizing ghost instance image storage */ constructor(options?: any); getProtectedSlugs(): any; /** urlJoin * Returns a URL/path for internal use in Ghost. * @param {string} arguments takes arguments and concats those to a valid path/URL. * @return {string} URL concatinated URL/path of arguments. */ urlJoin(...parts: any[]): string; createUrl(urlPath?: string, absolute?: boolean, trailingSlash?: boolean): string; absoluteToRelative(url: string): string; urlFor(context: any, data: any, absolute?: boolean): string; /** * Return whether the provided URL is part of the site (checks if same domain and within subdirectory) * @param {URL} url * @param {string} [context] describing the context for which you need to check a url * @returns {boolean} */ isSiteUrl(url: URL, context?: string): boolean; isSSL(urlToParse: string): boolean; /** * creates the url path for a post based on blog timezone and permalink pattern */ replacePermalink(permalink: string, resource: any, timezone?: string): string; deduplicateDoubleSlashes(url: string): string; }