import React, { Key } from "react"; export const convertDateToLocaleString: (s: string | Date) => string; export const columnFilterValue: (dataItem: unknown, showBlank?: boolean, customFilterValueFn?: ISimpleTableColumnFilterValueFn) => string[]; export type ISimpleTableRow = Record; export type ISimpleTableFieldName = Extract; export type ISimpleTableSortFn = ISimpleTableFieldName> = (a: T, b: T, sortBy: ISimpleTableSort) => number; export type ISimpleTableSearchFn = (a: T, searchText: string) => boolean; export type ISimpleTableFilterOutFn = (a: T) => boolean; export type ISimpleTableHeaderRenderFn = ISimpleTableFieldName> = React.FunctionComponent>; export type ISimpleTableCellRenderFn = ISimpleTableFieldName> = React.FunctionComponent>; export type ISimpleTableColumnFilterValueFn = (dataItem: TValue) => string[]; export interface ISimpleTableSort = ISimpleTableFieldName> { name: K; asc: boolean; columnFilterValueFn?: ISimpleTableColumnFilterValueFn; } export interface ISimpleTableHeaderRenderProps = ISimpleTableFieldName> { columnNumber: number; field: ISimpleTableField; } export interface ISimpleTableCellRenderProps = ISimpleTableFieldName> extends ISimpleTableHeaderRenderProps { cellField: K; rowData: T; rowNumber: number; } export interface ISimpleTableField = ISimpleTableFieldName> { name: K; label?: string; hidden?: boolean; width?: string; sortFn?: ISimpleTableSortFn; searchFn?: ISimpleTableSearchFn; filterOutFn?: ISimpleTableFilterOutFn; headerRenderFn?: ISimpleTableHeaderRenderFn; renderFn?: ISimpleTableCellRenderFn; canColumnFilter?: boolean; columnFilterValueFn?: ISimpleTableColumnFilterValueFn; } export const SimpleTableNullDate: ISimpleTableCellRenderFn; interface SimpleTableProps extends React.ComponentPropsWithoutRef<"table"> { id: string; headerLabel?: string; fields: ISimpleTableField[]; keyField: ISimpleTableFieldName; data: T[]; selectable?: boolean; currentSelection?: Key[]; setCurrentSelection?: (ret: Key[]) => void; showHeader?: boolean; showSearch?: boolean; showFilter?: boolean; showPager?: boolean; initialFilterSelected?: boolean; filterLabel?: string; searchLabel?: string; onWidthChange?: (ret: { name: ISimpleTableFieldName; width: string; }[]) => void; onPagerChange?: (ret: { firstRow: number; pageRows: number; }) => void; tableClassName?: string; inputGroupClassName?: string; filterLabelClassName?: string; filterCheckClassName?: string; searchLabelClassName?: string; searchInputClassName?: string; mainBackgroundColor?: string; headerBackgroundColor?: string; selectedBackgroundColor?: string; selectInactiveColor?: string; selectActiveColor?: string; } export const SimpleTable: { ({ id, currentSelection, data, fields, filterCheckClassName, filterLabel, filterLabelClassName, headerBackgroundColor, headerLabel, initialFilterSelected, inputGroupClassName, keyField, mainBackgroundColor, onPagerChange, onWidthChange, searchInputClassName, searchLabel, searchLabelClassName, selectActiveColor, selectInactiveColor, selectable, selectedBackgroundColor, setCurrentSelection, showFilter, showHeader, showPager, showSearch, tableClassName, ...rest }: SimpleTableProps): React.ReactElement; displayName: string; }; export const convertLocaleDateToUTCString: (s: string) => string; export function simpleTableSortFn>(a: T, b: T, sortBy: ISimpleTableSort): number; export function simpleTableSortFn(a: ISimpleTableRow, b: ISimpleTableRow, sortBy: ISimpleTableSort): number; //# sourceMappingURL=simple-table.d.ts.map