import type { SignatureKeyJwt, SignatureKeyJktJwt, SignatureKeyHwk, CapturedSent } from './types.js'; import type { SentRequest } from '@hellocoop/httpsig'; export declare function summarizeResponseHeaders(headers: Headers): Record; /** * Extract the JWT string from a SignatureKey, if present. Returns undefined * for hardware-wrapped keys (no transmitted JWT). */ export declare function jwtFromSignatureKey(sk: SignatureKeyJwt | SignatureKeyJktJwt | SignatureKeyHwk): string | undefined; /** * Decode the agent token carried by a SignatureKey, if any. Returns undefined * for hwk (no JWT) or malformed tokens. */ export declare function decodeSignatureKey(sk: SignatureKeyJwt | SignatureKeyJktJwt | SignatureKeyHwk): Record | undefined; /** * Convert @hellocoop/httpsig's SentRequest (Headers object) to a plain * Record-based CapturedSent suitable for inclusion in --log events and * JSON serialisation. */ export declare function captureSentFromHttpsig(sent: SentRequest): CapturedSent; /** * Read a Response's body as text without consuming it for downstream * consumers. Uses Response.clone() so the caller can still read body * afterwards. Returns undefined if the body can't be read as text. */ export declare function peekResponseBody(response: Response): Promise; //# sourceMappingURL=log-helpers.d.ts.map