import type { Rolldown } from 'vite'; export type AstTransformResult = { code: string; map: Rolldown.ExistingRawSourceMap | null; }; /** * Specializes compiler-owned templates by their unique reserved slots. This is not a JavaScript substitution API: * the shipped templates own the expression positions, and their tests verify those positions. Values must already be * serialized JavaScript expressions. Vite remains the sole owner of TypeScript/JSX lowering and syntax validation. */ export declare function replaceTemplate(code: string, filename: string, replacement: Readonly>, sourcemap: boolean): AstTransformResult;