export interface ApplyRedirectsOptions { redirect?: RequestInit['redirect']; } /** * Examine the passed redirects file and translate the passed path. * * If `undefined` is returned it means no redirect was necessary. * If a `string` is returned, an internal redirect to that path should be performed * If a `Response` is returned, the user has signalled they wish to process * redirects manually so it should be returned as a response */ export declare function applyRedirects(url: URL, _redirects: string, options?: ApplyRedirectsOptions): URL | Response | undefined; /** * Turns a record of key/value pairs into a URL-safe search params string * * We cannot use the native URLSearchParams to encode as it uses * `application/x-www-form-urlencoded` encoding which encodes " " as "+" and * not "%20" so use encodeURIComponent instead */ export declare function formatSearch(params: Record): string; //# sourceMappingURL=apply-redirect.d.ts.map