import * as React from 'react'; import { type DataIndex, type ColumnType, type CustomizeComponent, type DefaultRecordType, type AlignType, type CellEllipsisType } from '../interface'; import type { HoverContextProps } from '../context/HoverContext'; interface InternalCellProps extends HoverContextProps { prefixCls?: string; className?: string; record?: RecordType; /** `record` index. Not `column` index. */ index?: number; dataIndex?: DataIndex; render?: ColumnType['render']; component?: CustomizeComponent; children?: React.ReactNode; colSpan?: number; rowSpan?: number; ellipsis?: CellEllipsisType; align?: AlignType; shouldCellUpdate?: (record: RecordType, prevRecord: RecordType) => boolean; fixLeft?: number | false; fixRight?: number | false; firstFixLeft?: boolean; lastFixLeft?: boolean; firstFixRight?: boolean; lastFixRight?: boolean; /** @private Used for `expandable` with nest tree */ appendNode?: React.ReactNode; additionalProps?: React.HTMLAttributes; /** @private Fixed for user use `shouldCellUpdate` which block the render */ expanded?: boolean; rowType?: 'header' | 'body' | 'footer'; isSticky?: boolean; } export type CellProps = Omit, keyof HoverContextProps>; /** Inject hover data here, we still wish MemoCell keep simple `shouldCellUpdate` logic */ declare const WrappedCell: React.ForwardRefExoticComponent & React.RefAttributes>; export default WrappedCell;