import type { CSS } from "../theme/stitches.config"; import React, { RefAttributes, PropsWithoutRef } from "react"; import { AriaTableProps } from "@react-aria/table"; import { TableStateProps } from "@react-stately/table"; import { SelectionMode, SelectionBehavior } from "@react-types/shared"; import { TableColumn as TableColumnBase, TableCell as TableCellBase, TableRow as TableRowBase, TableBody as TableBodyBase, TableHeader as TableHeaderBase } from "./base"; import TablePagination from "./table-pagination"; import { TableVariantsProps, TableContainerVariantsProps } from "./table.styles"; interface Props extends TableStateProps { selectionMode?: SelectionMode; selectionBehavior?: SelectionBehavior; animated?: boolean; hideLoading?: boolean; as?: keyof JSX.IntrinsicElements; } declare type NativeAttrs = Omit, keyof Props>; export declare type TableProps = Props & NativeAttrs & Omit & TableContainerVariantsProps & { css?: CSS; containerCss?: CSS; } & Pick, "onRowAction" | "onCellAction">; declare type TableComponent = React.ForwardRefExoticComponent & RefAttributes> & { Cell: typeof TableCellBase; Column: typeof TableColumnBase; Row: typeof TableRowBase; Header: typeof TableHeaderBase; Body: typeof TableBodyBase; Pagination: typeof TablePagination; }; declare const _default: TableComponent>; export default _default;