import { CollectionBuilderContext } from './useTableState'; import { ColumnElement, ColumnRenderer } from './Column'; import { PartialNode } from '../collections/types'; import { JSX, ReactElement } from 'react'; export interface TableHeaderProps { /** A list of table columns. */ columns?: readonly T[]; /** A list of `Column(s)` or a function. If the latter, a list of columns must be provided using the `columns` prop. */ children: ColumnElement | ColumnElement[] | ColumnRenderer; } declare function TableHeader(props: TableHeaderProps): ReactElement | null; declare namespace TableHeader { var getCollectionNode: (props: TableHeaderProps, context: CollectionBuilderContext) => Generator, void, any>; } /** * A TableHeader is a container for the Column elements in a Table. Columns can be statically defined * as children, or generated dynamically using a function based on the data passed to the `columns` prop. */ declare let _TableHeader: (props: TableHeaderProps) => JSX.Element; export { _TableHeader as TableHeader };