import React from 'react'; import PropTypes from 'prop-types'; import { ComponentProps } from '../utils/types'; interface TreeGridCellPropsBase { /** Align the text in the cell. */ align?: 'left' | 'center' | 'right'; children?: React.ReactNode; /** * Stable id for this column. In TreeGrid, the hierarchy column cell must provide a * `columnId` that matches the corresponding `TreeGrid.HeadCell` and the configured * `hierarchyColumnId`. */ columnId?: string; /** * A React ref which is set to the DOM element when the component mounts and null when it * unmounts. */ elementRef?: React.Ref; } type TreeGridCellProps = ComponentProps; declare function Cell({ align, children, columnId, elementRef, ...otherProps }: TreeGridCellProps): React.JSX.Element; declare namespace Cell { var propTypes: { align: PropTypes.Requireable; children: PropTypes.Requireable; columnId: PropTypes.Requireable; elementRef: PropTypes.Requireable; }; } export default Cell;