/**
* Formatted-HTML post-processing for merged composites: span optimization and
* cleanup. Pure string transforms, no I/O.
*/
/**
* Optimize formatted HTML by merging spans with similar or compatible styling.
* Header elements get more permissive merge rules (same size + family wins,
* color may be missing on some spans).
*/
export declare function optimizeFormattedHtml(html: string, isHeaderElement?: boolean): string;
/**
* Clean up formatted HTML by removing empty span-wrapped headers and
* collapsing runs of whitespace.
*/
export declare function cleanupFormattedHtml(html: string): string;
//# sourceMappingURL=htmlFormatting.d.ts.map