/** * Formula library (Direction B "Small" scope, per the owner-approved * proposal - see the "Formula Library & Special Character Picker" scoping * artifact): a curated set of common science/math formulas, browsable by * domain and searchable by name, replacing the raw `window.prompt` * formula-insert flow. * * Every entry's `latex` is plain LaTeX, verified against KaTeX 0.18's * supported command set (the actual rendering ceiling - see * `surface/renderer.ts`'s `KATEX_OPTIONS`, `{ trust: false, strict: "error" * }`). Chemistry entries use the `mhchem` extension's `\ce{...}` macro, * registered in `surface/renderer.ts` (core) for real document rendering * and in `FormulaLibraryPopover.tsx` for this library's own previews. * * `notation` is always `"latex"` - the schema also accepts `"mathml"`, but * the renderer never implements a MathML render path * (docs/bugs/formula-mathml-notation-not-rendered.md, open) - so no library * entry may use it. */ export type FormulaDomain = "algebra" | "geometry" | "calculus" | "physics" | "chemistry" | "statistics"; export interface FormulaLibraryEntry { readonly id: string; readonly domain: FormulaDomain; readonly name: string; readonly latex: string; } export declare const FORMULA_DOMAINS: readonly { readonly id: FormulaDomain; readonly label: string; }[]; export declare const FORMULA_LIBRARY: readonly FormulaLibraryEntry[];