/** * Per-type validation for ``. * * Every other generator type has had its checks in a module of its own since * they were written; these two stayed behind in `validate.ts` for no reason but * the order they were added in. Moved here so the family is complete and the * dispatch in `validate.ts` reads as one line per type. */ import type { Diagnostic } from '../errors/index.js'; import type { OpenCloseElementContext, SelfClosingElementContext } from '../generated/TDCParser.js'; import { attrValueRange } from '../errors/index.js'; export declare function checkGenText(gen: OpenCloseElementContext | SelfClosingElementContext, diagnostics: Diagnostic[]): void; /** * A value that is declared and can never be drawn, because the shares written * beside it already add up to 100 and it was left to take what remains. * * A warning rather than a refusal: the run is well defined and somebody may want * exactly this — `percent="100"` is a legitimate way to say "only the first for * now". What is not acceptable is saying it in silence, which is what the * config did until this existed. */ export declare function warnOnInferredZeros(mask: string, values: readonly string[], percentAttr: Parameters[0], diagnostics: Diagnostic[]): void; /** * `percent=` on a generator that walks its list in order — accepted, and read by * nothing. * * `order="sequential"` gives row r element `r mod N`, which is a rule about * POSITION and leaves no room for a rule about SHARE. The engine's own comment * says so ("ignoring the random pick and any percent"), and nothing told the * user: `percent="98,1,1"` over a hundred rows came out 34 / 33 / 33 from a * config `check` had called valid, which is the shape of the request answered * by its exact opposite. * * Shared by `type="text"` and `type="file"` — both walk a list, and both * dropped the shares the same way. */ export declare function checkSequentialDropsPercent(gen: OpenCloseElementContext | SelfClosingElementContext, diagnostics: Diagnostic[]): void; //# sourceMappingURL=text.d.ts.map