/** * Returns `text` as a flat string. A string built by concatenation (template literals, * `replace`) is a tree of concatenated-string nodes in V8 until something reads its * characters; kept as an error description, every node stays in the heap (#444). * * The JSON round trip builds a fresh, flat string in every engine. Reading one character * (`text.charCodeAt(0)`) flattens a V8 string in place too, but the optimizer drops a call * whose result is unused, so that only works some of the time. */ export declare function flattenString(text: string): string;