Converts provider OCR text-like values into a normalized string.
Arrays are flattened line-by-line, primitive scalars are stringified, and structured values
fall back to JSON so adapters can preserve useful provider output without losing information.
Parameters
value: unknown
Provider OCR value to normalize.
Returns string|undefined
A normalized string when the value contains useful text.
Converts provider OCR text-like values into a normalized string.
Arrays are flattened line-by-line, primitive scalars are stringified, and structured values fall back to JSON so adapters can preserve useful provider output without losing information.