import { normalizeGeneratedNewlines } from '../text/index'; /** * Tiny helpers for agent-authored plain text before it becomes slide HTML. * * Models often emit: * - literal escape sequences (`\n`, `\r\n`, `\r`) instead of real newlines * - HTML entities (`&`, ` `, `„`, …) instead of characters * * Newline recovery uses the shared CommonMark/math parser to preserve literal * code and TeX. Markdown rendering and editable run styling live in markdown.ts. */ /** Decode complete HTML entities, including invalid numeric references safely. */ export declare function decodeHtmlEntities(text: string): string; /** Shared parser-backed recovery; code and math source are never decoded. */ export declare const unescapeAgentNewlines: typeof normalizeGeneratedNewlines; /** * Convert real newlines (`\r\n` / `\r` / `\n`) to `
` for HTML `content` paths. * Literal escape sequences are unescaped first. Entity decoding runs only when the * input does not already look like HTML, so intentional `&` in markup is kept. */ export declare function agentTextToHtmlBreaks(text: string): string;