/** * * This file may have been modified by Bytedance Inc. (“Bytedance Inc.'s Modifications”). * All Bytedance Inc.'s Modifications are Copyright (year) Bytedance Inc.. * * This source code is licensed under the Apache license. * See LICENSE file in the project root for license information. * */ import type { TransformColumns, ColumnsType, Key, ColumnType, SortOrder, ColumnTitleProps, SorterResult, TableLocale } from '../interface'; import type { TooltipProps } from '../../../tooltip'; 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 {};