import { FC, HTMLAttributes, PropsWithChildren, Ref } from 'react'; import { DataGridCellKey } from '../../types'; export interface DataGridCellProps extends HTMLAttributes { /** * Column index of the cell (0-based). Used together with row index from the row context * to form grid coordinates: `[row, col]`. */ col: number; /** * External ref to the cell root element. Will be merged with the internal * `itemRef([row, col], key)` registration when the cell is not excluded. */ ref?: Ref; /** * Stable key that identifies the cell in the DataGrid matrix. * If omitted, a key is derived as `${row}:${col}` from row/col. */ cellKey?: DataGridCellKey; /** * When `true`, renders children via `Slot` and forwards props/refs to the child * element instead of using a native `
`. * * @default false */ asChild?: boolean; /** * Exclude cells from focus traversal. * Overrides value from root DataGrid */ excluded?: boolean; } /** * DataGridCell registers itself in the DataGrid matrix, exposes ARIA roles/attributes, * and manages focusability based on the grid’s active cell. */ export declare const DataGridCell: FC>;