import React from 'react'; import PropTypes from 'prop-types'; import { ComponentProps } from '../utils/types'; interface HeadTablePropsBase { cellWidths: number[]; dragIndex?: number; elementRef?: React.Ref; hasDragColumn?: boolean; hasRowExpansion?: boolean; hasRowSelection?: boolean; headType: 'docked' | 'fixed'; horizontalOffset?: number; isFixedColumn?: boolean; rowSelection?: 'all' | 'some' | 'none'; tableStyle?: React.CSSProperties; tableWidth: number; tHead: React.ReactElement; top: number; width: number; } type HeadTableProps = ComponentProps; /** * @private * HeadTable is an internal component that provides a detached table head that can * then be positioned in different ways outside of the main table. */ declare function HeadTable({ cellWidths, elementRef, hasDragColumn, hasRowExpansion, hasRowSelection, headType, horizontalOffset, isFixedColumn, tableStyle, tableWidth, tHead, top, width, ...otherProps }: HeadTableProps): React.JSX.Element; declare namespace HeadTable { var propTypes: { cellWidths: PropTypes.Validator<(number | null | undefined)[]>; dragIndex: PropTypes.Requireable; elementRef: PropTypes.Requireable; hasDragColumn: PropTypes.Requireable; hasRowExpansion: PropTypes.Requireable; hasRowSelection: PropTypes.Requireable; headType: PropTypes.Validator; horizontalOffset: PropTypes.Requireable; isFixedColumn: PropTypes.Requireable; rowSelection: PropTypes.Requireable; tableStyle: PropTypes.Requireable; tableWidth: PropTypes.Validator; tHead: PropTypes.Validator; top: PropTypes.Validator; width: PropTypes.Validator; }; } export default HeadTable;