/** * @summary Make an horizontal table * @name visuals.table.horizontal * @function * @public * * @description * Notice that you can rename columns by using the CURRENT => NEW syntax in the ordering configuration. * * @param {Object[]} data - table data * @param {String[]} ordering - display ordering * * @example * console.log visuals.table.horizontal [ * { name: 'John Doe', age: 40 } * { name: 'Jane Doe', age: 35 } * ], [ * 'name => full name' * 'age' * ] * * FULL NAME AGE * John Doe 40 * Jane Doe 35 */ export declare function horizontal(data: object[], ordering?: readonly string[]): string | undefined; /** * @summary Make a vertical table * @name visuals.table.vertical * @function * @public * * @description * Notice that you can rename columns by using the CURRENT => NEW syntax in the ordering configuration. * * Vertical tables also accept separators and subtitles, which are represented in the ordering configuration as empty strings and strings surrounded by dollar signs respectively. * * @param {Object} data - table data * @param {String[]} [ordering] - display ordering * * @example * console.log visuals.table.vertical * name: 'John Doe' * age: 40 * job: 'Developer' * , [ * '$summary$' * 'name => full name' * 'age' * '' * '$extras$' * 'job' * ] * * == SUMMARY * FULL NAME: John Doe * AGE: 40 * * == EXTRAS * JOB: Developer */ export declare function vertical(data: object, ordering?: readonly string[]): string;