import { CSSProperties, PureComponent } from "react"; import { PropsInterface } from "../../interfaces/interfaces/PropsInterface"; import { TableInterfacePropsType } from "./Table"; export declare enum TableSimpleEnumType { STARS = "stars", DATE_NOW = "date_now", LABEL = "label", COMPONENT = "component", STRING = "string", DATE = "date", DATE_TIME = "date_time", NUMBER = "number", MONEY = "money", DECIMAL = "decimal", DEFAULT = "default", CIRCLE = "circle" } export declare type TableSimpleInterfaceRowComponent = (row?: TableSimpleInterfaceRow, col?: TableSimpleInterfaceColumn, indexRow?: number, indexCol?: number) => void; export interface TableSimpleInterfaceRow { id: string | number; [p: string]: { label: string; style: CSSStyleSheet; } | { color: string; style: CSSStyleSheet; } | string | number | any | TableSimpleInterfaceRowComponent; } export interface TableSimpleInterfaceColumn { key: string; data: string; type: TableSimpleEnumType; format?: string; style?: CSSProperties; } export interface TableSimpleInterfaceProps extends PropsInterface { columns: TableSimpleInterfaceColumn[]; rows: TableSimpleInterfaceRow[]; noData?: any; type?: TableInterfacePropsType; noHeader?: boolean; noFooter?: boolean; } export declare class TableSimple extends PureComponent { constructor(props: any); static formatCurrency(): Intl.NumberFormat; static type(item: TableSimpleInterfaceRow, indexRow: number, col: TableSimpleInterfaceColumn, indexCol: number): any; generateCol(item: TableSimpleInterfaceRow, index: any): JSX.Element[]; get table(): any; render(): JSX.Element; }