import * as React from 'react'; import { TableCellProps } from 'semantic-ui-react'; export declare type SimpleTableGetDataArgs = { params: { [name: string]: any; }; }; interface Props { getData: (args: SimpleTableGetDataArgs) => Promise; args: SimpleTableGetDataArgs; style?: React.CSSProperties; compact?: boolean; celled?: boolean; onRowClickPath?: (data: T) => string; onNewClickPath?: () => string; onRowClickAction?: (data: T) => void; onEdit?: ((data: T) => void) | string; onConfirmDelete?: (data: T) => Promise; columns?: (keyof T | SimpleTableColumn)[]; clientFilter?: { [name: string]: string; }; showDeleteCommand?: (data: T) => boolean; } export interface CrudFieldsForList { caption?: string; asLink?: boolean; render?: (item: T, props: Actions) => string | any; cellProps?: TableCellProps; headerCellProps?: TableCellProps; } export interface SimpleTableColumn extends CrudFieldsForList { name?: string; } export declare const DELETE_COLUMN: { render: (i: any, a: Actions) => JSX.Element; cellProps: TableCellProps; }; export declare const EDIT_COLUMN: { render: (i: any, a: Actions) => JSX.Element; cellProps: TableCellProps; }; export interface Actions { delete: () => void; editAction?: (item: T) => void; editLink?: (item: T) => string; } export declare function SimpleTable(props: Props): JSX.Element; export {};