export interface TableColumn { name?: string; size?: number; text(row: T): unknown; length?(row: T): number; /** @deprecated Include the formatting in `text` instead */ format?(text: string, row: T): string; /** If set pad the start instead of the end */ padStart?: boolean; /** Growth factor when there is extra space */ grow?: number; } export interface TableOptions { /** If specified, indent by this about of spaces before each row */ indent?: number; /** Customize the header formatting */ formatHead?(text: string): string; /** If set do not output anything. Useful for when you want interleaved output */ noOutput?: boolean; } export declare function setTableTargetWidth(width: number): void; export declare function setANSIStripper(fn: (text: string) => string): void; /** * Output a table, or prepare to output a table */ export declare function table(columns: TableColumn[], options?: TableOptions, data?: T[]): (row: T) => void;