/*! * Jodit Editor PRO (https://xdsoft.net/jodit/) * See LICENSE.md in the project root for license information. * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/ */ import type { IJodit } from "jodit/esm/types/index"; import type { IMathData } from "../../interface"; import { UIElement } from "jodit/esm/core/ui/index"; interface IMathEditorOptions { onSubmit: () => void; onChange: (data: IMathData) => void; } /** * Dialog body of the equation editor: format tabs, a symbol palette, the * source textarea and a live preview rendered by MathJax. */ export declare class UIMathEditor extends UIElement { private readonly handlers; className(): string; state: IMathData; private tabs; private source; private templates; private colorInputs; private alignButtons; private alignBox; private wrapButton; private drafts; private renderId; protected render(): string; constructor(jodit: IJodit, handlers: IMathEditorOptions); /** * Color swatches and the alignment switch shown in the preview corner. */ private buildAppearance; private colorField; /** * Mirrors the appearance part of the state into the controls. */ private syncAppearance; /** * Loads a copy of the data into the form and renders the preview. */ setData(data: IMathData): void; getData(): IMathData; focus(): void; private setFormat; /** * Replaces the source with a predefined formula in the active format. */ private applyTemplate; private insertSymbol; private refresh; private __render; } export {};