/** * Generate a markdown table from a 2D array * * @example * ```ts * const table = markdownTable([ * ['Name', 'Age', 'City'], * ['Alice', 30, 'NYC'], * ['Bob', 25, 'LA'] * ]) * // | Name | Age | City | * // | ----- | --- | ---- | * // | Alice | 30 | NYC | * // | Bob | 25 | LA | * ``` */ export declare function markdownTable(table: Table, options?: MarkdownTableOptions): string; /** * Create a markdown table from objects * * @example * ```ts * const data = [ * { name: 'Alice', age: 30 }, * { name: 'Bob', age: 25 } * ] * const table = markdownTableFromObjects(data) * ``` */ export declare function markdownTableFromObjects>(objects: T[], options?: MarkdownTableOptions): string; /** * Markdown table generation (markdown-table replacement) */ export declare interface MarkdownTableOptions { align?: Array<'l' | 'c' | 'r' | 'left' | 'center' | 'right' | null> padding?: boolean delimiter?: string delimiterStart?: boolean delimiterEnd?: boolean alignDelimiter?: string } declare type CellValue = string | number | boolean | null | undefined; declare type Row = CellValue[]; declare type Table = Row[]; // Alias export { markdownTable as default };