import React from "react"; import { SortedColumn } from "./TableContextProvider"; import "./table.scss"; export declare type TableTheme = "light" | "dark"; export declare type TableProps = JSX.IntrinsicElements["table"] & { /** callback when row is selected */ onRowSelect?: (event: React.ChangeEvent, rowKey: string) => void; /** callback when row is expanded */ onRowExpand?: (isExpanded: boolean, rowKey: string) => void; /** table theme */ theme?: TableTheme; /** callback when column is sorted */ onSort?: (sortedColumn: SortedColumn) => void; /** preset sorted column */ sortedColumn?: SortedColumn; }; export declare const Table: React.FunctionComponent;