import type { TableProps as RcTableProps } from '@rc-component/table'; import type { SemanticClassNames, SemanticClassNamesType, SemanticStyles, SemanticStylesType } from '../_util/hooks'; import type { AnyObject } from '../_util/type'; import type { SizeType } from '../config-provider/SizeContext'; import type { SemanticName as PaginationSemanticType } from '../pagination/Pagination'; import type { SpinProps } from '../spin'; import type { ColumnsType, FilterValue, GetPopupContainer, RefInternalTable, SorterResult, SorterTooltipProps, SortOrder, TableCurrentDataSource, TableLocale, TablePaginationConfig, TableRowSelection } from './interface'; export type { ColumnsType, TablePaginationConfig }; export type TableSemanticName = 'section' | 'title' | 'footer' | 'content' | 'root'; export type ComponentsSemantic = 'wrapper' | 'cell' | 'row'; export type TableClassNamesType = SemanticClassNamesType, TableSemanticName, { body?: SemanticClassNames; header?: SemanticClassNames; pagination?: SemanticClassNames; }>; export type TableStylesType = SemanticStylesType, TableSemanticName, { body?: SemanticStyles; header?: SemanticStyles; pagination?: SemanticStyles; }>; export interface TableProps extends Omit, 'transformColumns' | 'internalHooks' | 'internalRefs' | 'data' | 'columns' | 'scroll' | 'emptyText' | 'classNames' | 'styles'> { classNames?: TableClassNamesType; styles?: TableStylesType; dropdownPrefixCls?: string; dataSource?: RcTableProps['data']; columns?: ColumnsType; pagination?: false | TablePaginationConfig; loading?: boolean | SpinProps; size?: SizeType; bordered?: boolean; locale?: TableLocale; rootClassName?: string; onChange?: (pagination: TablePaginationConfig, filters: Record, sorter: SorterResult | SorterResult[], extra: TableCurrentDataSource) => void; rowSelection?: TableRowSelection; getPopupContainer?: GetPopupContainer; scroll?: RcTableProps['scroll'] & { scrollToFirstRowOnChange?: boolean; }; sortDirections?: SortOrder[]; showSorterTooltip?: boolean | SorterTooltipProps; virtual?: boolean; } /** Same as `TableProps` but we need record parent render times */ export interface InternalTableProps extends TableProps { _renderTimes: number; } declare const _default_1: RefInternalTable; export default _default_1;