/** * A template path that exists — but not for the locale this run will use. * * `check` used to pass such a config and the run then refused it with * "unknown template path", which reads as a typo and is not one: the path is * known, the DATA for this locale is missing. Caught here, before a single row * is generated, naming the locales that do ship it. * * Extracted from validate.ts to keep that file under the 1000-line ceiling; * it depends on nothing in it. */ import type { AttrContext, OpenCloseElementContext, SelfClosingElementContext } from '../generated/TDCParser.js'; import { type PackParamWidths, type PackParams } from './pack-params.js'; import type { Diagnostic } from '../errors/diagnostic.js'; /** What these checks need from the validator's context. */ export interface TemplateLocaleCtx { readonly diagnostics: Diagnostic[]; readonly packAddresses: readonly string[]; /** Address → why that pack file cannot be used. See `PackEntry.unusable`. */ readonly packUnusable?: ReadonlyMap | undefined; readonly locale: string; readonly packParams: PackParams | undefined; readonly packParamWidths: PackParamWidths | undefined; } /** * A template path that exists — but not for the locale this run will use. * * `check` used to pass such a config and the run then refused it with * "unknown template path", which reads as a typo and is not one: the path is * known, the DATA for this locale is missing. Caught here, before a single row * is generated, naming the locales that do ship it. * * Silent when the caller loaded no packs (isolated validator tests), when the * address is absolute (`fr.person.lastName`, `russia.tax.inn_org`), and for * builtin generator paths — none of those depend on the env locale. */ export declare function checkTemplateLocale(path: string, attrMap: Record, valueAttr: AttrContext, ctx: TemplateLocaleCtx): void; export declare function checkGenTemplate(gen: OpenCloseElementContext | SelfClosingElementContext, ctx: TemplateLocaleCtx): void; //# sourceMappingURL=template-locale.d.ts.map