import type { RedirectConfig } from '@redocly/config'; import type { StatusCode } from 'hono/utils/http-status'; /** * * Processes a redirect by normalizing the location and adding search parameters. * Does not handle wildcard redirects. Only direct redirects are supported. * * @param options - The options for the redirect. * @param options.redirect - The redirect configuration. * @param options.reqUrlSearch - The search parameters to add to the redirect location. * @returns The normalized redirect location and response code. * * @example * processRedirects({ redirect: { to: '/new-page' } }); * // Returns: { location: '/new-page', type: 301 } * * @example * processRedirects({ redirect: { to: '/new-page' }, reqUrlSearch: '?param=value' }); * // Returns: { location: '/new-page?param=value', type: 301 } * * @example * processRedirects({ redirect: { to: 'https://example.com', type: 302 } }); * // Returns: { location: 'https://example.com', type: 302 } */ export declare function processRedirects({ redirect, reqUrlSearch, }: { redirect: WithRequired; reqUrlSearch?: string; }): { location: string; type: StatusCode; }; //# sourceMappingURL=process-redirects.d.ts.map