/** * A tree adapter for ONE parse, plus the settle step that ends it. * * The pending state is per-parse rather than module-level so that a parse which * throws cannot leave a deferred removal for the next one to inherit. * @returns {{ adapter: any, settle: () => void }} */ export function createTreeAdapter(): { adapter: any; settle: () => void; }; /** * Parse `html` as an HTML fragment and return the hast tree. * * This is `hast-util-from-html`'s fragment path with {@link createTreeAdapter}'s * adapter in place of the default one — the option `rehype-parse` does not * forward. The settings are that path's own: positions on, parse errors ignored * (this package reports on the tree, never on the tokenizer's complaints), and * scripting off, so `noscript` content parses as markup. * @param {string} html * @returns {any} */ export function parseHtmlFragment(html: string): any;