import type { Mathlive } from './index'; type ElementAttributes = Record; declare module '@ckeditor/ckeditor5-core' { interface PluginsMap { [Mathlive.pluginName]: Mathlive; } interface EditorConfig { mathlive?: { /** * Mount the formula panel. */ renderMathPanel?: (element: HTMLElement) => (() => void) | undefined; /** * Whether to destroy the math formula panel when it is closed. */ mathPanelDestroyOnClose?: boolean; /** * Whether to open the panel when a equation is selected. */ openPanelWhenEquationSelected?: boolean; /** * Convert elements containing this class name into visual formula displays. * e.g. \sqrt{\frac{a}{b}} */ processClass?: string; /** * Convert the */ processScriptType?: string; /** * Visual formula output html data in CKEditor. * e.g. * { type: 'script', attributes: { type: 'math/tex' } } => * { type: 'span', attributes: { class: 'tex2jax_process' } } => \sqrt{\frac{a}{b}} */ output?: { type: string; attributes?: ElementAttributes; }; }; } } export {};