export type OutputUnit = 'pt' | 'px' | 'mm' | 'ex'; /** Supported math fonts */ export type FontName = 'modern' | 'stix2' | 'newcm' | 'fira' | 'bonum' | 'pagella' | 'schola' | 'termes' | 'dejavu' | 'asana'; /** All available font names */ export declare const FONT_NAMES: FontName[]; export interface ConversionOptions { /** Display mode (block) vs inline mode. Default: true */ display?: boolean; /** Font size (em size) in the same unit as 'unit'. Default: 16 */ fontSize?: number; /** Ratio of x-height to em size. Varies by font (Times: 0.45, Helvetica: 0.52). Default: 0.5 */ xHeightRatio?: number; /** Container width for line breaking calculations. Default: 800 */ containerWidth?: number; /** Output unit for width/height. fontSize should be specified in this unit. Required. */ unit: OutputUnit; /** Math font to use. Default: 'modern' */ font?: FontName; } export interface ConversionResult { svg: string; width: string; height: string; /** Distance below the text baseline (for vertical alignment) */ depth: string; } /** * Convert LaTeX math expression to SVG */ export declare function latexToSvg(latex: string, options: ConversionOptions): Promise; /** * Reset the MathJax instances (useful for testing) */ export declare function resetMathJax(): void;