import { RequestContextStorage } from "./RequestContextStorage";
import type { Dispatcher } from "undici-v6";
import { Context } from "../../agent/Context";
type OnHeaders = Dispatcher.DispatchHandlers["onHeaders"];
/**
 * Wrap the onHeaders function and check if the response is a redirect. If yes, determine the destination URL and call onRedirect.
 */
export declare function wrapOnHeaders(orig: OnHeaders, requestContext: ReturnType<typeof RequestContextStorage.getStore>, context: Context): OnHeaders;
export {};
