import { type CellData, type Column, type Header, type RowData, type TableFeature } from '@tanstack/react-table'; import { type KeyboardEvent as ReactKeyboardEvent, type MouseEvent as ReactMouseEvent, type TouchEvent as ReactTouchEvent } from 'react'; import type { TDataTableFeatures } from '../types/features.types.js'; /** * Helper function to create the resize handler for a header, used in the onMouseDown and onTouchStart events of the resizer button in the header. * * @param header - The header of the column that is resized. * @returns The mouse and touch event handler of the resizer button. * @internal */ export declare function header_getResizeHandler(header: Header): (event: ReactMouseEvent | ReactTouchEvent) => void; /** * Helper function to create the handler that auto-fits a column to its content, * used in the onDoubleClick event of the resizer button in the header. * * @param header - The header of the column that is auto-fitted. * @returns The double-click event handler of the resizer button. * @internal */ export declare function header_getResizeExpandHandler(header: Header): (event: ReactMouseEvent) => void; /** * Helper function to create the keyboard resize handler for a header, * used in the onKeyUp event of the resizer button in the header. * The arrow keys move the resize handle in the direction of the key. Holding * Ctrl enlarges the step. * * @param header - The header of the column that is resized. * @returns The key up event handler of the resizer button. * @internal */ export declare function header_getKeyboardResizeHandler(header: Header): (event: ReactKeyboardEvent) => void; /** * Helper function to determine if a column can be resized, based on the table and column options, and whether it is a leaf column. * * @param column - The column to check. * @returns `true` if the column can be resized. * @internal */ export declare function column_getCanResize(column: Column): boolean; /** * Constructs the column sizing feature for the table, * including API implementations and prototype assignments. * * @returns The column sizing table feature. * @internal */ export declare function constructColumnSizingFeature(): TableFeature; /** * Additional feature implementation for column sizing. * @internal */ export declare const DataTableColumnSizingFeature: TableFeature; //# sourceMappingURL=ColumnSizing.d.ts.map