/** * Render auth-header templates with rendered values, and a structural * redaction helper for serialization. * * `buildHeaders` renders each header value template against a context that * carries `${token}` plus any named captures / vars from the rewrite step. * `redactHeaders` masks `Authorization` values for any caller that needs to * serialize headers into logs, errors, or cache entries — the design's §8 * "tokens never leak" claim depends on every such site routing through this. * * Per design issue #113 §4 (auth.headers vocabulary) and §8 (redaction is * structural; Authorization values never appear in serialized output). */ export declare const REDACTED_VALUE = ""; /** * Render a map of header templates into a map of concrete header values. * * @throws {TemplateMissingVarError} if a header template references an * unknown context key * @throws {TemplateSyntaxError} from a malformed template expression * @throws {UnknownTransformError} from a template calling an unknown transform */ export declare function buildHeaders(templates: Record, context: Record): Record; /** * Return a copy of `headers` with sensitive values replaced by `REDACTED_VALUE`. * Header-name matching is case-insensitive but exact (no prefix matching) — a * header like `X-Authorization-Foo` is NOT considered sensitive. * * **Input must be a plain key-value object.** A `Headers` instance (Web Fetch * API) or a `Map` yields `[]` from `Object.entries` and would silently no-op * redaction — converting to a plain object is the caller's responsibility. */ export declare function redactHeaders(headers: Record): Record; //# sourceMappingURL=build-headers.d.ts.map