/** Transform only source spans classified as prose by the CommonMark/math parser. * Code (including unmatched fences), formulas, link destinations and HTML remain * byte-for-byte source. No Markdown serialization or delimiter guessing is used. */ export declare function mapMarkdownProse(source: string, transform: (text: string) => string): string; export declare function normalizeGeneratedMarkdown(source: string): string; export declare function normalizeGeneratedNewlines(source: string): string; export interface MarkdownMathSegment { type: 'text' | 'math'; raw: string; value: string; display: boolean; } /** Source-preserving math segments derived from the same syntax tree. */ export declare function markdownMathSegments(source: string): MarkdownMathSegment[];