/** * Shared DOM-based tag parser for inline formatting tags in replacement/insertion text. * * Supports: , , , , ,
, , * The tag supports color, size, and face attributes. */ import { stripAllInlineTags } from '@usejunior/docx-core'; import type { ReplacementPart } from '@usejunior/docx-core'; export { stripAllInlineTags }; export type ParsedSegmentState = { bold: boolean; italic: boolean; underline: boolean; highlighting: boolean; header: boolean; color: string | null; fontSize: number | null; fontName: string | null; }; export type ParsedReplacementSegment = ParsedSegmentState & { text: string; }; export declare function hasAnyMarkupTags(text: string): boolean; export declare function hasHeaderTags(text: string): boolean; export declare function hasInlineStyleTags(text: string): boolean; export declare function splitTaggedText(text: string): ParsedReplacementSegment[]; export declare function segmentAddRunProps(seg: ParsedReplacementSegment): NonNullable | undefined; //# sourceMappingURL=tag_parser.d.ts.map