/** * ANSI escape code generation. * Converts cell changes to terminal output. */ import type { Cell, Style } from "./cell.js"; import type { CellRun } from "./diff.js"; export declare function moveCursor(x: number, y: number): string; export declare function hideCursor(): string; export declare function showCursor(): string; export declare function clearScreen(): string; export declare function resetStyle(): string; /** * Generate ANSI codes for a style. */ export declare function styleToAnsi(style: Style): string; /** * Render a single cell to ANSI. */ export declare function cellToAnsi(cell: Cell, prevStyle?: Style): string; /** * Render a run of cells to ANSI. */ export declare function runToAnsi(run: CellRun): string; /** * Render all runs to a single ANSI string. */ export declare function runsToAnsi(runs: CellRun[]): string; //# sourceMappingURL=ansi.d.ts.map