/** * template/compiler.ts — HTML template string parser and static template cache. * * Responsibilities: * - Parse TemplateStringsArray into slot metadata (slot detection). * - Build a cached HTMLTemplateElement with path indices for efficient node lookup. * - Expose `getStaticTemplate()` for use by the instantiator. */ export declare const SlotKind: { readonly ATTR: "attr"; readonly BOOL_ATTR: "boolAttr"; readonly EVENT: "event"; readonly NODE: "node"; readonly REF: "ref"; }; export type DetectedSlotKind = (typeof SlotKind)[keyof typeof SlotKind]; export type NodePath = readonly number[]; export type SlotMeta = { commentId?: number; elementId?: number; kind: DetectedSlotKind; mode?: 'attr' | 'bool'; name?: string; }; export type CompiledStaticTemplate = { commentPaths: ReadonlyMap; element: HTMLTemplateElement; elementPaths: ReadonlyMap; slots: SlotMeta[]; }; export declare const getStaticTemplate: (strings: TemplateStringsArray) => CompiledStaticTemplate; export declare const followPath: (root: Node, path: NodePath) => Node; //# sourceMappingURL=compiler.d.ts.map