import type { RecursiveKeyOf } from '../types/Helpers'; type UseSortParams = Readonly<{ /** An array of data we want to sort. */ data: readonly T[]; /** * Key for the item we're sorting. * Use null/undefined to sort a simple array of strings or numbers * @example 'asset.name' */ sortBy?: RecursiveKeyOf; /** * The direction to sort items. * @default ascending */ sortDirection?: React.TdHTMLAttributes['aria-sort']; }>; export declare const useSort: ({ data, sortBy, sortDirection }: UseSortParams) => T[]; export {}; //# sourceMappingURL=useSort.d.ts.map