import type { PPTLatexElement } from '../types/slides'; /** * Apply an editor save onto an existing formula. * * The canvas box (`width` / `height`) is the authored scale. Never replace it * with the newly measured natural size — `useLiveBoxFit` scales the new * formula into that box. `viewBox` stores the natural measure for export. */ export declare function latexPropsAfterEdit(_current: Pick, next: { latex: string; path?: string; w: number; h: number; }): Pick; /** Same uniform scale `useLiveBoxFit` writes: authored box / natural viewBox. */ export declare function latexPaintScale(el: Pick): number; /** Scale a measured formula so it stays inside the slide with a margin. */ export declare function fitLatexBoxToSlide(width: number, height: number, slideW: number, slideH: number, pad?: number): { width: number; height: number; left: number; top: number; }; /** * Extract the contents of every equation (or equation*) environment. */ export declare const extractEquationLatex: (source: string) => string[]; /** * MathLive emits compact TeX (`4^5\cdot3x`). hfmath's tokenizer treats digits * as part of a command name, so `\cdot3x` becomes one unknown token and is * drawn as literal text. TeX ends a control word before a digit; insert that * space here before handing the string to hfmath. */ export declare const toHfmathLatex: (latex: string) => string;