/** * Sanitizes a redirect pathname by decoding it, removing leading slashes, spaces, * and null characters, and re-encoding it as a valid URI. * * This ensures that the pathname is safe to use in redirects or navigation. * * @param pathname - The pathname to sanitize (e.g., "/%20/%00home"). * @returns A sanitized, encoded pathname starting with a single slash. * * @example * sanitizeRedirectPathname("/%20/%00home"); * // "/home" * * sanitizeRedirectPathname("///\u0000/about"); * // "/about" */ export declare function sanitizeRedirectPathname(pathname: string): string; //# sourceMappingURL=sanitize-redirect-pathname.d.ts.map