/** * Text normalization helpers for prompt/context assembly. * * WHY: Several runtime paths need to turn mixed nested values into stable, * human-readable text blocks. Keeping this logic in one place makes prompt * construction more predictable and avoids each caller inventing slightly * different null/array/object coercion rules. * * The walk is depth-, work-, and cycle-bounded because provider output and * memory metadata can carry hostile nests or sparse collections. Cycles skip * the back-edge; over-budget graphs fail closed with a typed error. */ /** Nesting ceiling. Honest prompt values are a handful of objects deep. */ export declare const MAX_TEXT_NORMALIZE_DEPTH = 64; /** Node ceiling across the whole flatten, including leaves. */ export declare const MAX_TEXT_NORMALIZE_NODES = 2048; /** Collection-edge ceiling, including sparse holes and inherited keys. */ export declare const MAX_TEXT_NORMALIZE_EDGES = 2048; export declare const TEXT_NORMALIZE_UNBOUNDED = "TEXT_NORMALIZE_UNBOUNDED"; /** * Flatten a mixed nested value into text fragments. * * - Arrays are recursively flattened * - Empty/nullish values are dropped * - Strings are trimmed * - Dates become deterministic ISO-8601 strings * - Errors become `Name: message` fragments * - Objects become `key: value` fragments * - Scalars are stringified */ export declare function flattenTextValues(value: unknown): string[]; /** * Convert a mixed nested value into a multi-line text block. */ export declare function toMultilineText(value: unknown): string;