/** * Formats seconds as ' h' * @param seconds */ export declare function formatHours(seconds: number): string; /** * Takes a string and puts some lines under it: * 'foo' ==> 'foo\n---' * @param str */ export declare function underline(str: string, pattern?: string): string; export declare enum TableFormat { csv = "csv", ascii = "ascii" } interface ColumnDefinitionOptions { label: string; valueFormatter?: (val: any, format: TableFormat) => string; } interface FormatArgs { data: T[]; columns: Array<[keyof T, string | ColumnDefinitionOptions]>; format: TableFormat; } /** * Formats an array of objects as a tabular string representation based on the provided `format` * @param items An array of data, where the array items are used as rows and the properties as columns * @param columns defines the order and the names of the table columns * @param format the output format: csv, ascii */ export declare function formatDataTable({ columns, format, data }: FormatArgs): string; export {}; //# sourceMappingURL=formatting.d.ts.map