import * as React from "react"; export type OrderStatus = "desc" | "asc" | null; export type GetValue = (obj: T) => string | number; export type CurrentSortState = { isDesc: boolean; name: string; getValue?: GetValue; }; export declare const useOrderState: (defaultState: CurrentSortState) => [CurrentSortState, React.Dispatch>>]; export declare const changeOrderState: (currentSortState: CurrentSortState, getValue: GetValue, name: string) => CurrentSortState; export declare const getOrder: (currentSortState: CurrentSortState, name: string) => OrderStatus; export declare const desc: (a: any, b: any, getValue?: GetValue) => 1 | 0 | -1; export declare const sort: (array: any[], order: CurrentSortState) => any[];