/*! * 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, Nullable } from "jodit/esm/types/index"; import type { IMathData, MathAlign, MathDisplay, MathFormat } from "./interface"; export declare const MATH_ATTR = "data-jodit-math"; export declare const MATHML_NS = "http://www.w3.org/1998/Math/MathML"; export declare const FORMAT_TITLES: Record; export declare function isMathFormat(value: unknown): value is MathFormat; export declare function isMathDisplay(value: unknown): value is MathDisplay; export declare function isMathAlign(value: unknown): value is MathAlign; export declare function normalizeMathData(raw: Partial, defaults: IMathData): IMathData; export declare function defaultMathData(jodit: IJodit, display?: MathDisplay): IMathData; /** * Inline style of the formula element: colors and alignment live on the * element itself so they survive outside the editor. The SVG uses * `currentColor`, so `color` paints the formula. */ export declare function mathStyle(data: IMathData): string; /** * MathJax expects a `` root; bare MathML children are wrapped into one. */ export declare function wrapMathML(source: string, display: MathDisplay): string; export declare function isMathElement(node: Nullable, className: string): node is HTMLElement; export declare function findMath(jodit: IJodit, node: Nullable): Nullable; export declare function readMathData(jodit: IJodit, element: HTMLElement): Nullable; export declare function decorateMath(jodit: IJodit, element: HTMLElement): void; export declare function applyMathData(jodit: IJodit, element: HTMLElement, data: IMathData, svg: string): void; export declare function pixels(value: string): number; export declare function mathTag(display: MathDisplay): 'figure' | 'span'; export declare function createMath(jodit: IJodit, data: IMathData, svg: string): HTMLElement;