import type { RouteManifest } from '../../config/manifest/types';
/**
 * Strips trailing slash from a pathname, unless it's the root path.
 * This normalizes paths like '/about/' to '/about' to handle Next.js `trailingSlash: true` config.
 */
export declare function stripTrailingSlash(pathname: string): string;
/**
 * Removes the configured `basePath` from a pathname.
 *
 * App Router routes are generated with `basePath` baked in, but Next strips it internally for the
 * Pages Router, so `__BUILD_MANIFEST.sortedPages` holds routes without it.
 */
export declare function stripBasePath(pathname: string): string;
/**
 * Get and cache the route manifest from the global object.
 * @returns The parsed route manifest or null if not available/invalid.
 */
export declare function getManifest(): RouteManifest | null;
/**
 * Parameterize a route using the route manifest.
 *
 * @param route - The route to parameterize.
 * @returns The parameterized route or undefined if no parameterization is needed.
 */
export declare const maybeParameterizeRoute: (route: string) => string | undefined;
//# sourceMappingURL=parameterization.d.ts.map