import type { TooltipProps } from '../../tooltip'; import type { ColumnsType, ColumnTitleProps, ColumnType, Key, SorterResult, SortOrder, TableLocale, TransformColumns } from '../interface'; export interface SortState { column: ColumnType; key: Key; sortOrder: SortOrder | null; multiplePriority: number | false; } export declare function getSortData(data: readonly RecordType[], sortStates: SortState[], childrenColumnName: string): RecordType[]; interface SorterConfig { prefixCls: string; mergedColumns: ColumnsType; onSorterChange: (sorterResult: SorterResult | SorterResult[], sortStates: SortState[]) => void; sortDirections: SortOrder[]; tableLocale?: TableLocale; showSorterTooltip?: boolean | TooltipProps; } export default function useFilterSorter({ prefixCls, mergedColumns, onSorterChange, sortDirections, tableLocale, showSorterTooltip, }: SorterConfig): [ TransformColumns, SortState[], ColumnTitleProps, () => SorterResult | SorterResult[] ]; export {};