import { CollectHeaders } from "./cloudConfig.js"; import { AfterSuccessContext, AfterSuccessHook } from "./types.js"; /** * Captures response headers and injects them into the JSON body as `_headers` * so they survive through the generated formatResult() and surface in MCP tool * output. The set of headers to collect is driven by configuration: * - `true` → collect every response header * - `string[]` → collect only matching headers (exact name, prefix:, or regex:) */ export declare class ResponseHeadersHook implements AfterSuccessHook { private readonly collectHeaders; constructor(collectHeaders: CollectHeaders); afterSuccess(hookCtx: AfterSuccessContext, response: Response): Promise; } //# sourceMappingURL=responseHeadersHook.d.ts.map