import { RecordValue } from '@coveo/bueno';
import { SortBy, SortByRelevance, SortDirection, SortByFields as CoreSortByFields, SortByFieldsFields as CoreSortByFieldsFields, buildRelevanceSortCriterion } from '../../sort/sort.js';
export type { SortByRelevance };
export { SortBy, SortDirection, buildRelevanceSortCriterion };
export type SortByFields = Pick<CoreSortByFields, 'by'> & {
    fields: SortByFieldsFields[];
};
export type SortByFieldsFields = CoreSortByFieldsFields & {
    displayName?: string;
};
export type SortCriterion = SortByRelevance | SortByFields;
/**
 * Builds a field sort criterion.
 *
 * @param fields - An array of fields to sort by.
 * @returns The sort criterion object.
 */
export declare const buildFieldsSortCriterion: (fields: SortByFieldsFields[]) => SortByFields;
export declare const sortCriterionDefinition: RecordValue;
