/** * The `name` a ``/``/`` declares, and its `parent`. * * Extracted from validate.ts to keep that file under its 1000-line ceiling — * the same move that carved out template-locale.ts, and the same shape: a * narrow context interface, diagnostics pushed, nothing returned. */ import type { OpenCloseElementContext } from '../generated/TDCParser.js'; import type { Diagnostic } from '../errors/diagnostic.js'; /** What this check needs from the validator's context. */ export interface DeclNameCtx { readonly diagnostics: Diagnostic[]; readonly declaredSequences: string[]; readonly valuelessSequences: string[]; readonly finiteValues: Map; /** * Where the names of the `` being walked start in `declaredSequences`. * A pool's members are its own columns, so one may share a name with a column * of the run; only another member of the same pool is a duplicate. */ readonly poolNamesFrom?: number | undefined; } /** * Validate the `name` (required, unique, non-builtin, non-`_`-prefixed) and * `parent` (declared earlier) attributes shared by `` and `` — * both declare a named env-level value. Pushes diagnostics only; the caller * registers the name into `ctx.declaredSequences` afterwards. */ export declare function checkDeclName(el: OpenCloseElementContext, ctx: DeclNameCtx, tag: 'sequence' | 'mix' | 'switch'): void; //# sourceMappingURL=decl-name.d.ts.map