import { RichTextParagraph } from "./RichTextParagraph";
import { TextProps } from "../../graphics";
export declare class RichTextHelper {
    parser: DOMParser;
    /**
     * 将字符串转换为布尔值
     * @param value 可能是 boolean, string, null, undefined
     * @returns boolean 或 undefined
     */
    private parseBooleanAttribute;
    parse(xmlString: string, textProps: TextProps): RichTextParagraph[];
    /**
     * 转义 XML 文本内容中的特殊字符
     * @param text 原始文本
     * @returns 转义后的文本
     */
    escapeXmlText(text: string): string;
    /**
     * 预处理 XML 字符串，转义标签内的文本内容
     * @param xmlString 原始 XML 字符串
     * @returns 处理后的 XML 字符串
     */
    private preprocessXmlString;
    private parseRichText;
    private flattenNodes;
    private computeTextBlocks;
    private makeupTextBlock;
    private makeupTextBlockOfText;
    private makeupTextBlockOfCacheTextBlock;
    private computeTextProps;
}
//# sourceMappingURL=RichTextHelper.d.ts.map