import type { MisinaContext, MisinaDriver, MisinaResolvedOptions } from "./types.mjs"; /** * Walk the driver through redirects manually so we can apply our header * policy and call beforeRedirect hooks. The driver receives a request with * `redirect: 'manual'`; we follow until a non-3xx is returned. */ export declare function followRedirects(driver: MisinaDriver, request: Request, options: MisinaResolvedOptions, ctx: MisinaContext): Promise; export interface BeforeRedirectContext { request: Request; response: Response; options: MisinaResolvedOptions; attempt: number; sameOrigin: boolean; } export type BeforeRedirectHook = (ctx: BeforeRedirectContext) => void | Request | Promise;