import { Table } from '../table'; type Item = any; export interface TableFormatState { schema?: Item; attrs: Map; options?: CustomFormatOptions; } export interface CustomFormatOptions { indent?: number; transformItemsBeforeFormat?(item: Item): Item; } interface FormattedItem { lineCount: number; cells: Map; } export declare function formatItems(state: TableFormatState, items: Iterable): FormattedItem[]; export declare function newTableFormatState(options: CustomFormatOptions): TableFormatState; export declare function updateStateForItems(state: TableFormatState, items: FormattedItem[]): void; export declare function formatHeader(state: TableFormatState): { key: string; print(log: any): void; }; export declare function printItems(state: TableFormatState, items: FormattedItem[], log: (s: string) => void): void; export declare function formatTable(table: Table, options?: CustomFormatOptions): string[]; export {};