import type { Root } from 'mdast'; import type { Processor } from 'unified'; import { type FormulaConfig } from '../../../Config/formulaConfig'; /** * 将段落节点转换为相应的节点类型(根据内容开头字符) * - ! 开头 → image * - | 开头 → table * - [ 开头 → link * * @returns {(tree: any) => void} * Transformer function. */ export declare function convertParagraphToImage(): (tree: any) => void; /** * Plugin to fix bold text containing special characters like **$9.698M**, **57%**, etc. * * @returns {(tree: any) => void} * Transformer function. */ export declare function fixStrongWithSpecialChars(): (tree: any) => void; /** * 保护 Jinja 块内的 $,防止被 remark-math 误解析为行内数学(如 {{ $var }}) * 须在 remark-math 之前运行 */ export declare function protectJinjaDollarInText(): (tree: any) => void; type MarkdownParser = Processor; export declare const createMarkdownParser: (formulaConfig?: FormulaConfig) => MarkdownParser; export declare const getMarkdownParser: (formulaConfig?: FormulaConfig) => MarkdownParser; declare const _default: MarkdownParser; export default _default;