import { type RedactMatcher } from '../../core/logging/redact-match.js'; export interface TraceSerializeOptions { /** Nested objects/arrays deeper than this are replaced with a marker. */ readonly maxDepth?: number; /** Object keys / array items kept per level; the excess is summarized. */ readonly maxEntries?: number; /** Strings longer than this are truncated with a marker. */ readonly maxStringLength?: number; /** Key-path matcher; matching values are replaced with `[Redacted]`. */ readonly redact?: RedactMatcher; } /** * Serialize a captured value into a JSON-safe, bounded, redacted form. * * The result contains only `null`, booleans, finite numbers, strings, plain * objects and arrays — safe to write straight into a `jsonb` column. Anything * that would break those guarantees is replaced with a `[…]` marker rather than * dropped silently, so a reader can tell capture hit a bound. */ export declare function serializeForTrace(value: unknown, options?: TraceSerializeOptions): unknown; //# sourceMappingURL=bounded-serializer.d.ts.map