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