/** * Minimal ambient types for KaTeX — the package ships no declarations and we * only use `renderToString`. Keeps the built-in MathML renderer in * `engine/plugins/math-view.ts` type-safe without pulling in @types/katex. */ declare module 'katex' { interface KatexOptions { displayMode?: boolean; output?: 'html' | 'mathml' | 'htmlAndMathml'; throwOnError?: boolean; [option: string]: unknown; } const katex: { renderToString(tex: string, options?: KatexOptions): string; }; export default katex; }