/** * Removes any trailing slashes from the path of a URL (e.g. `/foo/bar/` → `/foo/bar`). Path `/` is unchanged. */ export declare function removeTrailingSlashesFromPath(url: string): string; /** * Returns true when the path part of the URL has trailing slashes that would be removed by removeTrailingSlashesFromUrl. */ export declare function pathHasTrailingSlash(url: string): boolean;