import type { TextSegment } from "./types.js"; /** * Parse a markup string into TextSegment[]. * * Markup syntax: * **bold text** → { text: "bold text", bold: true } * *italic text* → { text: "italic text", italic: true } * {#RRGGBB}text{/} → { text: "text", color: "#RRGGBB" } * {=#RRGGBB}text{/} → { text: "text", backgroundColor: "#RRGGBB" } — highlighter pill * Combinable: **{#FFD700}bold gold{/}** → { text: "bold gold", bold: true, color: "#FFD700" } * * Unmatched markers are treated as literal text. * {#RRGGBB} or {=#RRGGBB} without {/} colors/highlights the rest of the string. */ export declare function parseRichText(input: string): TextSegment[]; export declare function segmentsToPlainText(segments: TextSegment[]): string; //# sourceMappingURL=rich-text-parser.d.ts.map