import React, { ImgHTMLAttributes } from 'react';
import { MoneyProps } from '../money';
import { AvatarViewProps } from '../avatarView';
interface TableCellTypeProp {
type: 'leading' | 'text' | 'currency' | 'status' | 'media';
}
interface TableCellTextProps {
primaryText?: string;
secondaryText?: string;
}
interface TableCellStatusProp {
status?: 'error' | 'success';
}
export interface TableCellMedia extends TableCellTypeProp, TableCellTextProps {
media?: ImgHTMLAttributes;
}
export interface TableCellLeading extends TableCellTypeProp, TableCellTextProps, TableCellStatusProp {
avatar?: Pick & {
asset?: AvatarViewProps['children'];
/** @deprecated Use `"imgSrc" instead. */
src?: AvatarViewProps['imgSrc'];
};
}
export interface TableCellText extends TableCellTypeProp, TableCellStatusProp {
text?: string;
}
export interface TableCellCurrency extends TableCellTypeProp, TableCellStatusProp {
primaryCurrency?: MoneyProps;
secondaryCurrency?: MoneyProps;
flag?: boolean;
}
export interface TableCellStatus extends TableCellTypeProp, TableCellTextProps {
sentiment?: 'negative' | 'neutral' | 'positive' | 'warning' | 'pending';
}
export interface TableCellType {
cell?: TableCellLeading & TableCellText & TableCellCurrency & TableCellStatus & TableCellMedia;
alignment?: 'left' | 'right';
}
export interface TableCellProps extends TableCellType {
className?: string;
colSpan?: number;
children?: React.ReactNode;
}
declare const TableCell: ({ cell, alignment, className, colSpan, children }: TableCellProps) => React.JSX.Element;
export default TableCell;
//# sourceMappingURL=TableCell.d.ts.map