import { type CellData, type Column, type ColumnSizingState, type Header, type HeaderGroup, type Row, type RowData, type Table, type TableFeature } from '@tanstack/react-table'; import type { VirtualItem } from '@tanstack/react-virtual'; import type { DataTableColumnResizingState } from '../ColumnSizing/column-sizing-types.js'; import type { TDataTableFeatures } from '../types/features.types.js'; import type { DataTableVisualVariantTableState } from '../VisualVariants/visual-variants-types.js'; /** * Allows to get the gridPosition of a specific header cell in order * to place it into the correct place in the template and span it across the correct * elements. * @internal */ export declare function header_getGridPosition(header: Header, headers: Array>): { gridColumnStart: number; gridColumnEnd: string; gridRowStart: number; gridRowEnd: string; }; /** * Helper function to get the grid column position for a specific column based on its index in the column list. This is used for non-header cells, which are always rendered in the first row of the grid and should span only one column. * @internal */ export declare function column_getGridColumnPosition(column: Column, columnIndex?: number): { gridColumnStart: number; gridColumnEnd: string; }; /** * Returns the name of the grid line that starts the grid row of the body row * with the given index in the row model. * @internal */ export declare function getRowGridLineName(rowIndex: number): string; /** * Helper function to get the grid position of a body row. The row spans all * columns and starts at the named grid line of its index in the row model * (see `table_getGridTemplateRows`). As the line name does not depend on the * rendered row window, the position of a row stays the same while scrolling. * @internal */ export declare function row_getGridRowPosition(row: Row, rowIndex: number): { readonly gridColumnStart: 1; readonly gridColumnEnd: "row-end"; readonly gridRowStart: string; readonly gridRowEnd: "span 1"; }; export declare function table_getHasFractionalTemplate(table: Table): boolean; export declare function table_getVisibleHeaderGroupsCount(table: Table): number; export declare function table_setObservedHeaderHeight(table: Table, height: number): void; export declare function table_getHeaderSize(table: Table, headerId: string): { width: number; height: number; }; export declare function table_getColumnOrHeaderWidth(table: Table, columnOrHeaderId: string): number; export declare function table_getTotalHeaderHeight(table: Table, visualVariantOptions: DataTableVisualVariantTableState['visualVariantConfig'], visibleLeafColumns: Array>, tableHeaderGroups: Array>, observedHeaderHeight: number): number; /** * Helper function to estimate the row height based on the row density and separation visual variants. This is used for the row virtualizer to estimate the height of rows that are not rendered yet. * @internal */ export declare function table_estimateRowHeight(table: Table, index: number | undefined, isHeaderRow: boolean | undefined, rowDensity: 'default' | 'condensed' | 'comfortable', rowSeparation: 'none' | 'horizontalDividers' | 'zebraStripes'): number; export declare function table_getHeaderGridTemplateRows(table: Table): "[body-start]" | "[header-start] max-content [header-end body-start]" | "[header-start] max-content max-content [header-end body-start]"; export declare function table_getGridTemplateRows(table: Table, virtualItems: VirtualItem[] | undefined): string; export declare function table_getGridTemplateColumns(table: Table, columnSizing: ColumnSizingState, columnResizing: DataTableColumnResizingState): string; /** * Constructs the layout feature for the table, * including API implementations and prototype assignments. * @internal */ export declare function constructTableLayoutFeature(): TableFeature; /** * Additional feature implementation for table layout. * @internal */ export declare const DataTableTableLayoutFeature: TableFeature; //# sourceMappingURL=Layout.d.ts.map