import type { Plugin } from 'unified'; import type { GenericParent } from 'myst-common'; import type { Handle } from 'hast-util-to-mdast'; export type HtmlTransformOptions = { keepBreaks?: boolean; htmlHandlers?: { [x: string]: Handle; }; }; export declare function htmlTransform(tree: GenericParent, opts?: HtmlTransformOptions): GenericParent; /** * Traverse mdast tree to reconstruct html elements split across mdast nodes into a single node * * This function identifies html "opening" nodes, then collects the subsequent mdast nodes until * it encounters a "closing" node, when it consolidates all the nodes into a single html node. */ export declare function reconstructHtmlTransform(tree: GenericParent): GenericParent; export declare const reconstructHtmlPlugin: Plugin<[], GenericParent, GenericParent>; export declare const htmlPlugin: Plugin<[HtmlTransformOptions?], GenericParent, GenericParent>; //# sourceMappingURL=html.d.ts.map