import React from 'react'; import { FixedType } from './interface'; declare type Key = React.Key; declare type DefaultRecordType = Record; export declare type CellEllipsisType = { showTitle?: boolean; } | boolean; interface CellType { key?: Key; className?: string; style?: React.CSSProperties; children?: React.ReactNode; column?: ColumnsType[number]; colSpan?: number; rowSpan?: number; /** Only used for table header */ hasSubColumns?: boolean; colStart?: number; colEnd?: number; } interface RenderedCell { props?: CellType; children?: React.ReactNode; } declare type DataIndex = string | number | (string | number)[]; interface ColumnSharedType { title?: React.ReactNode; key?: Key; className?: string; fixed?: FixedType; onHeaderCell?: GetComponentProps[number]>; ellipsis?: boolean; align?: AlignType; } interface ColumnGroupType extends ColumnSharedType { children: ColumnsType; } declare type AlignType = 'left' | 'center' | 'right'; interface ColumnType extends ColumnSharedType { colSpan?: number; dataIndex?: DataIndex; render?: (value: any, record: RecordType, index: number) => React.ReactNode | RenderedCell; rowSpan?: number; width?: number | string; onCell?: GetComponentProps; /** @deprecated Please use `onCell` instead */ onCellClick?: (record: RecordType, e: React.MouseEvent) => void; } declare type ColumnsType = (ColumnGroupType | ColumnType)[]; declare type GetComponentProps = (data: DataType, index?: number) => React.HTMLAttributes; declare type Component

= React.ComponentType

| React.ForwardRefExoticComponent

| React.FC

| keyof React.ReactHTML; declare type CustomizeComponent

= React.HTMLAttributes> = Component

; export declare function getPathValue(record: ObjectType, path: DataIndex): ValueType | null; export interface ICellProps { id?: string; prefixCls?: string; className?: string; style?: React.CSSProperties; record: RecordType; /** `record` index. Not `column` index. */ index: number; dataIndex: DataIndex; isTree?: boolean; render?: ColumnType['render']; component?: CustomizeComponent; children?: React.ReactNode; colSpan?: number; rowSpan?: number; ellipsis?: CellEllipsisType; align?: AlignType; onExpand?: (expanded: boolean, record: RecordType) => void; onClick?: (e: any) => void; onMouseEnter?: () => void; onMouseLeave?: () => void; /** @private Used for `expandable` with nest tree */ appendNode?: React.ReactNode; additionalProps?: React.HTMLAttributes; } declare const MemoCell: React.MemoExoticComponent> & React.RefAttributes>>; export default MemoCell;