import type { TreeAdapter, TreeAdapterTypeMap } from '../tree-adapters/interface.js'; import { type DefaultTreeAdapterMap } from '../tree-adapters/default.js'; export interface SerializerOptions { /** * Specifies input tree format. * * @default `treeAdapters.default` */ treeAdapter?: TreeAdapter; /** * The [scripting flag](https://html.spec.whatwg.org/multipage/parsing.html#scripting-flag). If set * to `true`, `noscript` element content will not be escaped. * * @default `true` */ scriptingEnabled?: boolean; } /** * Serializes an AST node to an HTML string. * * @example * * ```js * const parse5 = require('parse5'); * * const document = parse5.parse('Hi there!