import { AsyncLoadable, LoadingState } from '@react-types/shared'; import { PartialNode } from '../collections/types'; import { JSX, ReactElement } from 'react'; import { RowElement } from './Row'; export interface TableBodyProps extends Omit { /** The contents of the table body. Supports static items or a function for dynamic rendering. */ children: RowElement | RowElement[] | ((item: T) => RowElement); /** A list of row objects in the table body used when dynamically rendering rows. */ items?: Iterable; /** The current loading state of the table. */ loadingState?: LoadingState; } declare function TableBody(props: TableBodyProps): ReactElement | null; declare namespace TableBody { var getCollectionNode: (props: TableBodyProps) => Generator, any, any>; } /** * A TableBody is a container for the Row elements of a Table. Rows can be statically defined * as children, or generated dynamically using a function based on the data passed to the `items` prop. */ declare let _TableBody: (props: TableBodyProps) => JSX.Element; export { _TableBody as TableBody };