import { type RenderFormat } from "@metaobjectsdev/render"; import type { Generator } from "../generator.js"; import { type TemplateScope } from "../generators/template-generator.js"; export interface TemplateSpecEntry { name: string; template: string; scope: TemplateScope; outputPattern: string; format?: RenderFormat; target?: string; } export interface TemplateSpecFile { generators: TemplateSpecEntry[]; } /** Validate + narrow an untyped JSON value into a TemplateSpecFile. Throws on * any shape violation (missing/empty required string, bad scope, non-object). */ export declare function parseTemplateSpec(json: unknown): TemplateSpecFile; /** Map a parsed spec into runnable Generators (one templateGenerator per entry). */ export declare function templateSpecToGenerators(spec: TemplateSpecFile): Generator[]; //# sourceMappingURL=template-spec.d.ts.map