/** * Unified JQHTML Compiler Module * * Single source of truth for compiling JQHTML templates to JavaScript * with proper sourcemap generation and version injection. */ export interface CompileOptions { format: 'iife' | 'esm' | 'cjs' | 'umd'; /** * true: an inline sourcemap (a data: URL comment at the end of `code`) - the default * way to ship one. 'external': no comment; the map is returned as `map` for the * caller to write or hand on. false: none. */ sourcemap: boolean | 'external'; version?: string; } /** A version 3 source map. */ export interface SourceMapObject { version: number; file?: string; sources: string[]; sourcesContent?: (string | null)[]; names: string[]; mappings: string; } export interface CompiledOutput { code: string; componentName: string; /** Only with `sourcemap: 'external'`. */ map?: SourceMapObject; } /** * Compile a JQHTML template to JavaScript * * @param source - The JQHTML template source code * @param filename - The source filename for sourcemap generation * @param options - Compilation options * @returns The compiled JavaScript code as a string */ export declare function compileTemplate(source: string, filename: string, options: CompileOptions): CompiledOutput; //# sourceMappingURL=compiler.d.ts.map