/** * @file Borderless table renderer — columns separated by two spaces, header * underlined with `─`. Lighter weight than `formatTable` (no box-drawing * characters); the right choice when the surface is rendering to a context * that doesn't reliably support box-drawing glyphs. */ import type { TableColumn } from './types.js'; /** * Format data as a simple table without borders. Lighter weight alternative to * formatTable(). * * @example * import { formatSimpleTable } from '@socketsecurity/lib/term/tables/simple' * import colors from 'yoctocolors-cjs' * * const data = [ * { name: 'lodash', version: '4.17.21' }, * { name: 'react', version: '18.2.0' }, * ] * const columns = [ * { key: 'name', header: 'Package' }, * { key: 'version', header: 'Version' }, * ] * console.log(formatSimpleTable(data, columns)) * // Output: * // Package Version * // ─────── ─────── * // lodash 4.17.21 * // react 18.2.0 * * @param data - Array of data objects. * @param columns - Column configuration. * * @returns Formatted table string */ export declare function formatSimpleTable(data: Array>, columns: TableColumn[]): string;