export interface ASTAttribute { key: string; value: string; } export interface ASTNode { tagName?: string; attributes?: ASTAttribute[]; content?: string; children?: ASTNode[]; } export type AST = ASTNode[]; /** * 将HTML字符串解析为AST */ export declare const toAST: (html: string) => AST; /** * 从HTML字符串中提取纯文本(用于备注处理) */ export declare const extractTextFromHTML: (html: string) => string; /** * 解析HTML备注为纯文本数组(模拟原始代码的DOMParser功能) */ export declare const parseRemarkHTML: (html: string) => string[]; //# sourceMappingURL=htmlParser.d.ts.map