import { Sort, SortsOptions } from "./plugins/data-sorting/types.js"; /** * @example * * ```ts * deserializeSorts('first_name.asc', { separator: '.', transform: 'camelize' }); * // => [{ property: 'firstName', direction: 'ascending' }] * * deserializeSorts('last_name.desc', { separator: '.', transform: 'camelize' }); * // => [{ property: 'lastName', direction: 'descending' }] * ``` */ declare const deserializeSorts: (sortString: string, options?: SortsOptions) => Sort[]; /** * @example * * ```ts * serializeSorts([{ property: 'firstName', direction: 'ascending' }],{ separator: '.', transform: 'camelize' }); * // => 'first_name.asc' * * serializeSorts([{ property: 'lastName', direction: 'descending' }],{ separator: '.', transform: 'camelize' }); * // => 'last_name.desc' * ``` */ declare function serializeSorts(sorts: Sort[], options?: SortsOptions): string; export { deserializeSorts, serializeSorts };