import { RichElement, RichText } from './type'; export interface ParserOptions { /** * 移除无法识别的元素,默认 true * 如果需要识别自定义标签, 请在 whitelistElements 中声明白名单 */ trimUnknownElements: boolean; /** * 元素白名单 */ whiteListElements: Set; /** * 这些元素将被整体移除 */ skipElements: Set; /** * 这些元素没有下级节点,将跳过他们的节点解析 */ voidElements: Set; /** * 必须有闭合标签的元素 */ closingElements: Set; /** * 块元素 * https://developer.mozilla.org/en-US/docs/Web/HTML/Block-level_elements */ blockElements: Set; /** * 内联元素 * https://developer.mozilla.org/en-US/docs/Web/HTML/Inline_elements */ inlineElements: Set; /** * 转换 HTML 之前的处理 */ transformHTML?: (html: string) => string; /** * 转换文本节点 */ transformText?: (taroText: RichText) => RichText; /** * 转换元素节点 */ transformElement?: (taroElement: RichElement) => RichElement; } export declare const options: ParserOptions; /** * 配置选项 * * 注意,这会浅覆盖原有的配置 * @param merge */ export declare function setOptions(merge: Partial): void; //# sourceMappingURL=options.d.ts.map