import { breakTerminalLigatures, displayWidth } from './terminal-width.js'; /** * Scan a body of prose for GitHub-flavoured markdown tables and replace * each one with a Unicode box-drawing rendering that fits the terminal * width. Cells that overflow their column wrap over multiple lines. * * Non-table prose passes through unchanged. * * Input shape (rest of the doc may surround it): * | Header A | Header B | * |----------|---------:| * | a 1 | 42 | * | a 2 | 7 | * * Output shape: * ┌──────────┬──────────┐ * │ Header A │ Header B │ * ├──────────┼──────────┤ * │ a 1 │ 42 │ * │ a 2 │ 7 │ * └──────────┴──────────┘ */ export declare function renderMarkdownTables(text: string, maxWidth: number): string; export declare function detectTable(lines: string[], start: number): number; export declare function renderTable(tableLines: string[], maxWidth: number): string; /** Same width implementation used by Ink's own Yoga measurement/output path. */ export declare const strWidth: typeof displayWidth; /** Backward-compatible table export; ligature handling now lives centrally. */ export declare const breakLigatures: typeof breakTerminalLigatures; //# sourceMappingURL=markdown-table.d.ts.map