import type { Ref } from 'vue'; import type { KottiTable } from './types'; /** @public */ export type SortMode = 'ascending' | 'descending'; /** @public */ export type SortInstruction = -1 | 0 | 1; export declare function getNumericalSorter>(mapper: (data: T) => number | null, mode: SortMode): (a: T, b: T) => SortInstruction; export declare function getDateSorter>(mapper: (data: T) => Date | null, mode: SortMode): (a: T, b: T) => SortInstruction; export declare function getTextSorter>(mapper: (data: T) => string | null, mode: SortMode): (a: T, b: T) => SortInstruction; export declare const useLocalSort: ({ locallySortedData, ordering, rawData, sortingFunctions, }: { locallySortedData: Ref; ordering: Ref[]>; rawData: Ref; sortingFunctions: Record (a: ROW, b: ROW) => SortInstruction>; }) => void;