/** * Utilities to modify URLs. */ export declare class UrlUtils { /** * Ensures there is only one trailing slash if this is a segment or a URL without a query or hash. * * With this method you can easily combine multiple segments together without having to worry about adding slashes. * * E.g. * * const url = host + UrlUtils.ensureTrailingSlash(segment1) + UrlUtils.ensureTrailingSlash(segment2) * * @param {string} urlString * @returns {string} */ static ensureTrailingSlash(urlString: string): string; }