import type { SetupContext } from 'vue';
import type { PrimaryTableCol, SortInfo, TableRowData, TdPrimaryTableProps } from '../type';
export declare type SortMap = Record<string, SortInfo & {
    index: number;
}>;
export default function useSorter(props: TdPrimaryTableProps, { slots }: SetupContext): {
    renderSortIcon: ({ col }: {
        col: PrimaryTableCol<TableRowData>;
        colIndex: number;
    }) => JSX.Element;
};
