/**
 * Removes the trailing slash from a URL string if it exists,
 * except when the URL is just a single slash ("/").
 *
 * @param url - The input URL string.
 * @returns The URL without a trailing slash, or the original URL if no trailing slash is present
 *          or if the URL is just "/".
 *
 * @example
 * removeTrailingSlash('https://example.com/') // 'https://example.com'
 * removeTrailingSlash('https://example.com/path/') // 'https://example.com/path'
 * removeTrailingSlash('/') // '/'
 * removeTrailingSlash('https://example.com') // 'https://example.com'
 */
export declare function removeTrailingSlash(url: string): string;
//# sourceMappingURL=remove-trailing-slash.d.ts.map