import type { SortId, SortOrder, SortValue, SortValueDeserialized } from './DataView.types'; /** * Receives a SortValue (ex: `'-product_name'`) and returns an object with a `id` and an `order`. */ export declare function deserializeSortValue(sort: SortValue): SortValueDeserialized; /** * Receives an object with a `id` and an `order` and returns a SortValue (ex: `'-product_name'`). */ export declare function serializeSortValue({ id, order }: SortValueDeserialized): SortValue; interface GetNextSortArgs { newId: SortId | undefined; newOrder?: SortOrder; oldId?: SortId; oldOrder?: SortOrder; } /** * Given new and old sorting data, it returns the next sorting value using the following sorting cycle: * * "unsorted --> ascending --> descending --> unsorted" */ export declare function getNextSort({ newId, newOrder, oldId, oldOrder }: GetNextSortArgs): SortValue | undefined; export {};