export type SortDirection = 1 | -1 | 0; export interface UseSortResult { sortedData: any[]; setSortedField: (item: string, value: SortDirection) => void; field: string; direction: SortDirection; } export type SortData = Record[]; export declare const useSort: (data: SortData) => UseSortResult;