import { IDomEditor } from '@wangeditor/editor'; import { DOMElement } from '../utils/dom'; import { KatexOptions } from 'katex'; export declare const IS_MAC: boolean; export interface IFormulaConfig { formulaConfig: { katexOptions?: KatexOptions; formulaRender?: (value: string, el: HTMLElement) => void; }; } export declare function getFormulaConfig(editor: IDomEditor): IFormulaConfig['formulaConfig']; export declare function formulaRenderWithEditor(editor: IDomEditor, value: string, elem: HTMLElement): void; export declare function isMenuDisabled(editor: IDomEditor, mark?: string): boolean; export declare const stringToHtml: (s: string) => string; /** * 生成 modal textarea elems * @param labelText label text * @param textareaId input dom id * @param placeholder input placeholder * @returns [$container, $textarea, $textareaBox] */ export declare function genModalTextareaElems(editor: IDomEditor, labelText: string, textareaId: string, placeholder?: string): { textareaContainerElem: DOMElement; setTextareaValue: (value: string) => void; renderElem: DOMElement; };