/** * Render raw terminal / tmux pane output as colorized HTML. * * Pure and framework-free, so both the console and any agent UI can use it. It previously lived * inside one agent's package, which is why the console rendered terminal tails as an uncolorized * `
` while the Coder colorized the same bytes — the first concrete case of a generic block
 * having nowhere shared to live (#187).
 *
 * SECURITY. The result is consumed via `dangerouslySetInnerHTML`, so every byte of input must be
 * escaped. The original detected its own generated JSON blocks by sniffing
 * `line.startsWith("` was injected verbatim into the console origin. Generated blocks
 * are now held aside under a sentinel and re-inserted only AFTER escaping, so nothing on the raw
 * path can reach them.
 *
 * That claim is what {@link SafeHtml} names: the result is minted through `sanitizedHtml` here,
 * and `SafeHtmlView` accepts nothing else — so the escaping above is the only thing a reviewer
 * has to check, rather than every pane that renders a tail.
 */
import { type SafeHtml } from "./safe-html.js";
export declare function renderTerminal(text: string): SafeHtml;
/** A short, plain-text tail — for compact previews that must never render HTML. */
export declare function terminalTail(text: string, chars?: number): string;
//# sourceMappingURL=terminal-render.d.ts.map