/** * `| json` on a list — TDC312. * * A `repeat=` column is a LIST joined into one cell with its separator, and `| json` cannot see * that: it reads text. Without its argument it prints the whole cell as one string, * `"English;Spanish"`, which is valid JSON and almost never what the config meant. With an * argument that is not the column's separator it prints a one-element array. Both run, both * produce a file that parses, and the mistake surfaces in whatever reads the file — so `check` * says so here, naming the separator to write. * * Only lists whose separator the config states plainly are known: a `` whose single * `` repeats, a pool field of that shape, and the same field read through a reference to the * pool (`D.languages`) or on a line walking it (`Doctors.languages`), one nested level included * (`Doctors.dept.tags`). */ import { type Diagnostic } from '../errors/index.js'; import type { DataElementContext, OpenCloseElementContext } from '../generated/TDCParser.js'; /** Every list a `${{…}}` can name, by the path it is named with, and its separator. */ export declare function collectListSeparators(env: OpenCloseElementContext | undefined): Map; /** * TDC312 for each `${{List | json}}` in one `` that does not split on the list's separator. * * `walked` are the lists an `each` line and its groups walk: there a name is the current ELEMENT. */ export declare function checkJsonLists(text: string, node: DataElementContext, inject: string, lists: ReadonlyMap, diagnostics: Diagnostic[], walked?: readonly string[]): void; //# sourceMappingURL=json-lists.d.ts.map