import * as React from 'react'; import type { UrlStateOptions } from "../_util/hooks/useUrlState"; import type { AnyObject } from "../_util/type"; import type { SpinProps } from '../spin'; import type { ColumnStateType, ColumnsType, ExpandableConfig, GetComponentProps, GetPopupContainer, GetRowKey, InternalColumnType, Key, Reference, SorterResult, SorterTooltipProps, SortOrder, TableActionType, TableComponents, TableCurrentDataSource, TableEditableConfig, TableGetRequestType, TableLayout, TableLocale, TablePaginationConfig, TableRowSelection, TableSearchConfig, TableSemanticClsType, TableSticky, ToolbarConfig } from './interface'; export type TableProps = { prefixCls?: string; dropdownPrefixCls?: string; className?: TableSemanticClsType; style?: React.CSSProperties; dataSource?: readonly RecordType[]; columns?: ColumnsType; rowKey?: string | keyof RecordType | GetRowKey; tableLayout?: TableLayout; headerTitle?: React.ReactNode; scroll?: { x?: number | true | string; y?: number | string; scrollToFirstRowOnChange?: boolean; }; /** Config expand rows */ expandable?: ExpandableConfig; rowSelection?: TableRowSelection; editable?: TableEditableConfig; summary?: (data: readonly RecordType[]) => React.ReactNode; id?: string; showHeader?: boolean; components?: TableComponents; onRow?: GetComponentProps; onHeaderRow?: GetComponentProps[]>; sticky?: boolean | TableSticky; rowHoverable?: boolean; loading?: boolean | SpinProps; size?: 'default' | 'middle' | 'small'; verticalLine?: boolean; locale?: TableLocale; onChange?: (pagination: TablePaginationConfig, filters: Record, sorter: SorterResult | SorterResult[], extra: TableCurrentDataSource) => void; getPopupContainer?: GetPopupContainer; sortDirections?: SortOrder[]; showSorterTooltip?: boolean | SorterTooltipProps; search?: TableSearchConfig; toolbar?: ToolbarConfig; columnsState?: ColumnStateType; syncToUrl?: boolean | Omit; onScroll?: React.UIEventHandler; extraRender?: (currentDataSource: RecordType[], responseData: any, action: TableActionType) => React.ReactNode; } & ({ pagination: false; request?: TableGetRequestType; } | { pagination?: TablePaginationConfig; request?: TableGetRequestType; }); export interface InternalTableProps extends Omit, 'pagination'> { _renderTimes: number; pagination?: false | TablePaginationConfig; } export type ForwardGenericTable = ((props: InternalTableProps & React.RefAttributes>) => React.ReactElement) & { displayName?: string; }; declare const ImmutableTable: ForwardGenericTable; export default ImmutableTable;