import { AbsProps, GraphicNode } from "@/graphics";
import { NodeType } from "@/idl";
import { FormulaProps } from "@/graphics/props/FormulaProps";
import { AbsImgNode } from "@/graphics/img/AbsImgNode";
/**
 * 数学公式节点
 * 可以看作一个特殊的SVG节点，其SVG代码由FormulaProps中的LaTeX公式生成
 * 渲染流程：LaTeX → SVG Code → ImageBitmap → Canvas绘制
 */
export declare class MathFormula extends AbsImgNode {
    type: NodeType;
    /** 由LaTeX公式生成的SVG代码 */
    svgCode: string;
    constructor(id: string, ctx: CanvasRenderingContext2D);
    get formulaProps(): FormulaProps;
    get formula(): string;
    setSvgCode(svgCode: string): void;
    static load(id: string, type: NodeType, zIndex: number, props: Partial<AbsProps>[], parent: GraphicNode, ctx: CanvasRenderingContext2D): MathFormula;
}
//# sourceMappingURL=MathFormula.d.ts.map