import { DataTable } from '../../../../core/chart-data-processor/table-processor.js'; /** Optional settings for {@link calcColumnWidths}. */ export type CalcColumnWidthsOptions = { /** Font family used to measure text widths. Defaults to `'Open Sans'`. */ fontFamily?: string; /** Lower bound for a computed column width, in pixels. Defaults to {@link MIN_WIDTH}. */ minWidth?: number; /** Upper bound for a computed column width, in pixels. Defaults to {@link MAX_WIDTH}. */ maxWidth?: number; }; /** * Calculates each column's pixel width from its header text and widest cell value, * clamped between `minWidth` and `maxWidth`. * @param dataTable - Table data whose columns and rows are measured. * @param isShowFieldTypeIcon - Whether the header reserves extra space for a field-type icon. * @param columnsOptions - Per-column overrides, indexed the same as `dataTable.columns`. * @param options - See {@link CalcColumnWidthsOptions}. * @returns The computed width, in pixels, for each column in `dataTable.columns` order. */ export declare const calcColumnWidths: (dataTable: DataTable, isShowFieldTypeIcon: boolean, columnsOptions: { isHtml: boolean; width?: number; }[], { fontFamily, minWidth, maxWidth }?: CalcColumnWidthsOptions) => number[];