/** * Generate ANSI-colored text from xterm.js buffer * * Reconstructs ANSI escape sequences from the terminal buffer, * using theme colors for defaults so output matches SVG/PNG rendering. */ import type { Terminal } from "@xterm/headless"; import { Theme } from "./themes.js"; interface AnsiOptions { theme?: Theme; } export declare function bufferToAnsi(terminal: InstanceType, cols: number, rows: number, options?: AnsiOptions): string; export declare function bufferToText(terminal: InstanceType, cols: number, rows: number): string; export {}; //# sourceMappingURL=buffer-to-ansi.d.ts.map