import { ComponentPropsWithRef, ForwardedRef, PropsWithoutRef, ReactElement, RefAttributes, WeakValidationMap } from 'react'; import { LeafyGreenTableCell, LGRowData } from '../useLeafyGreenTable'; export type Align = Extract['align'], 'left' | 'right' | 'center'>; interface BaseCellProps extends ComponentPropsWithRef<'td'> { /** * Alignment of the cell's contents * * Overrides ``'s deprecated `align` prop */ align?: Align; /** * A `className` applied to the inner `div` of the Cell */ contentClassName?: string; } export interface CellProps extends BaseCellProps { /** * The cell object that is returned when mapping through a row passed from the `useLeafyGreenTable` or `useLeafyGreenVirtualTable` hook. */ cell?: LeafyGreenTableCell; } export type InternalCellWithRTRequiredProps = Omit, 'cell'> & Required, 'cell'>>; export interface InternalCellProps extends BaseCellProps { } export interface InternalCellWithRTProps extends InternalCellWithRTRequiredProps { } /** * Type definition for `Cell` that works with generics. * cell is optional */ export interface CellComponentType { (props: CellProps, ref: ForwardedRef): ReactElement | null; displayName?: string; propTypes?: WeakValidationMap & RefAttributes>> | undefined; } /** * Type definition for `InternalCellWithRT` that works with generics. * cell is required */ export interface InternalCellWithRTComponentType { (props: InternalCellWithRTProps, ref: ForwardedRef): ReactElement | null; displayName?: string; propTypes?: WeakValidationMap & RefAttributes>> | undefined; } export {}; //# sourceMappingURL=Cell.types.d.ts.map