import { components } from '../../types/api'; import ReportQuery from '../../types/ReportQuery'; import { AsyncSummary } from '../../types/UserReports'; import { Cell, DataTable, SortKey } from './types'; import Dict = NodeJS.Dict; declare class DataTableBuilder { protected fields: components['schemas']['FieldDefinition'][]; private sortData; protected columns: Array; protected reportSummaries: Dict>; private reportQuery; private currentQueryParams; constructor(fields: components['schemas']['FieldDefinition'][], sortData?: boolean); private mapDate; private mapBoolean; protected mapRow(rowData: NodeJS.Dict, extraClasses?: string, overrideFields?: components['schemas']['FieldDefinition'][]): Cell[]; private mapCell; protected mapCellValue(field: components['schemas']['FieldDefinition'], cellData?: string): string | undefined; protected mapHeader(): Cell[]; protected mapData(data: Array>): Cell[][]; private mergeCells; private getCellByFieldName; private mapSummary; protected sort(data: Dict[]): Dict[]; protected sortKeyComparison(): (a: SortKey, b: SortKey) => 0 | 1 | -1; private appendSortKeyToData; protected mapNamesToFields(names: string[]): components['schemas']['FieldDefinition'][]; protected getSortKey(rowData: NodeJS.Dict, sortFields: components['schemas']['FieldDefinition'][]): string; withHeaderOptions({ reportQuery, columns, interactive, }: { reportQuery?: ReportQuery; columns: string[]; interactive: boolean; }): this; withHeaderSortOptions(reportQuery: ReportQuery): this; withNoHeaderOptions(columns: string[]): this; buildTable(data: Array>): DataTable; withSummaries(reportSummaries: Dict>): this; withSortedData(sortData?: boolean): this; } export { DataTableBuilder }; export default DataTableBuilder;