export declare function ensureLeadingSlash(value: string): string; export declare function ensureTrailingSlash(value: string): string; export declare function ensureNoLeadingSlash(value: string): string; export declare const removeTrailingSlash: (path: string) => string; /** * Creates a fully-qualified URL by combining a route path with a base URL. * Normalizes the path with the application's base path and ensures proper slash handling. * @returns fully-qualified URL object * @param path The route path (e.g., "/auth/login") * @param baseUrl The base URL (e.g., "https://myapp.example.com") * @returns A URL object representing the full route URL * @throws Error if baseUrl is not provided */ export declare function createRouteUrl(path: string, baseUrl?: string): URL; export declare const normalizeWithBasePath: (path: string) => string;