import type { Plugin } from 'unified'; import type { VFile } from 'vfile'; import 'katex/contrib/mhchem/mhchem.js'; import type { InlineMath } from 'myst-spec'; import type { Math } from 'myst-spec-ext'; import type { GenericParent } from 'myst-common'; import type { PageFrontmatter } from 'myst-frontmatter'; type Options = { macros?: Required['math']; mathML?: boolean; }; export declare function renderEquation(file: VFile, node: Math | InlineMath, opts?: Options): void; /** * Lift math from paragraphs. All information on the paragraph is copied (e.g. classes) * * ``` * [ ..., {paragraph: [child1, math1, child2, child3, math2]}, ... ] * [ ..., {paragraph: [child1]}, math1, {paragraph: [child2, child3]}, math2, ... ] * ``` * * @param tree * @param file */ export declare function mathNestingTransform(tree: GenericParent, file: VFile): void; export declare function mathLabelTransform(tree: GenericParent, file: VFile): void; export declare function subequationTransform(tree: GenericParent, file: VFile): void; export declare function mathTransform(tree: GenericParent, file: VFile, opts?: Options): void; export declare const mathNestingPlugin: Plugin<[], GenericParent, GenericParent>; export declare const mathLabelPlugin: Plugin<[], GenericParent, GenericParent>; export declare const mathPlugin: Plugin<[Options?], GenericParent, GenericParent>; export {}; //# sourceMappingURL=math.d.ts.map