export declare function sortTableData(data: T[], getField: (item: T) => K, sortDirection: SortDirection): T[]; export declare const SortDirection: { readonly ascending: 1; readonly descending: -1; }; export declare type SortDirection = typeof SortDirection[keyof typeof SortDirection]; export declare const Direction: { readonly notSorted: 0; readonly ascending: 1; readonly descending: -1; }; export declare type Direction = typeof Direction[keyof typeof Direction]; interface SortParameters { column: number; direction: Direction; } export declare function calculateNextSortDirection(columnIndex: number, sortParameters: SortParameters): SortParameters; export {};