/** * Normalizes a route slug into a consistent, clean format for routing. * * Normalization rules: * - Removes query parameters (`?foo=bar`) and hash fragments (`#section`). * - Removes any trailing slash (`/`) at the end (except for the root path). * - Ensures the route starts with a leading slash (`/`). * - Decodes any percent-encoded characters (e.g. `%20` → space). * * @param route - The route string to normalize. * @returns A normalized, decoded route slug starting with `/`. * * @example * normalizeRouteSlug('about/') // "/about" * normalizeRouteSlug('/about?x=1#top') // "/about" * normalizeRouteSlug('contact') // "/contact" * normalizeRouteSlug('/%E6%97%A5%E6%9C%AC') // "/日本" */ export declare function normalizeRouteSlug(route: string): string; //# sourceMappingURL=normalize-route-slug.d.ts.map