import type { UrlStateOptions } from "../../_util/hooks/useUrlState"; import type { AnyObject } from '../../_util/type'; import type { ColumnTitleProps, InternalColumnsType, InternalColumnType, Key, SorterResult, SorterTooltipProps, SortOrder, TableLocale } from '../interface'; export interface SortState { column: InternalColumnType; key: Key; sortOrder: SortOrder | null; multiplePriority: number | false; } export declare const getSortData: (data: readonly RecordType[], sortStates: SortState[], childrenColumnName: keyof RecordType) => RecordType[]; interface SorterConfig { prefixCls: string; columns?: InternalColumnsType; onSorterChange: (sorterResult: SorterResult | SorterResult[], sortStates: SortState[]) => void; sortDirections: SortOrder[]; tableLocale?: TableLocale; showSorterTooltip?: boolean | SorterTooltipProps; syncToUrl?: UrlStateOptions; } declare const useSorter: (props: SorterConfig) => [(columns: InternalColumnsType) => InternalColumnsType, SortState[], ColumnTitleProps, () => SorterResult | SorterResult[]]; export default useSorter;