import type { BlockConfig, BlockFromConfigNoChildren, Exporter } from "@blocknote/core"; import { Paragraph } from "docx"; type MathBlock = BlockFromConfigNoChildren, any, any>; type InlineMath = { type: "math"; content: string; }; /** * DOCX block mapping for `@blocknote/math-block` that renders math blocks as * native (editable) Word equations. Invalid LaTeX renders an error * placeholder (mirroring the editor): * * ```ts * import { mathBlockMapping } from "@blocknote/math-block/docx-exporter"; * * new DOCXExporter(schema, { * ...docxDefaultSchemaMappings, * blockMapping: { * ...docxDefaultSchemaMappings.blockMapping, * mathBlock: mathBlockMapping, * }, * }); * ``` */ export declare function mathBlockMapping(block: MathBlock, exporter: Exporter): Paragraph; /** * DOCX inline content mapping for `@blocknote/math-block` that renders * inline math as native (editable) Word equations. Invalid LaTeX renders an * error placeholder (mirroring the editor): * * ```ts * import { inlineMathMapping } from "@blocknote/math-block/docx-exporter"; * * new DOCXExporter(schema, { * ...docxDefaultSchemaMappings, * inlineContentMapping: { * ...docxDefaultSchemaMappings.inlineContentMapping, * math: inlineMathMapping, * }, * }); * ``` */ export declare function inlineMathMapping(inlineContent: InlineMath, exporter: Exporter): any; export {};