import { RecordValue } from '@coveo/bueno';
export declare enum SortBy {
    Relevance = "relevance",
    Fields = "fields"
}
export declare enum SortDirection {
    Ascending = "asc",
    Descending = "desc"
}
export type SortByRelevance = {
    by: SortBy.Relevance;
};
export type SortByFieldsFields = {
    name: string;
    direction?: SortDirection;
};
export type SortByFields = {
    by: SortBy.Fields;
    fields: SortByFieldsFields[];
};
export type SortCriterion = SortByRelevance | SortByFields;
export declare const buildRelevanceSortCriterion: () => SortByRelevance;
export declare const buildFieldsSortCriterion: (fields: SortByFieldsFields[]) => SortByFields;
export declare const sortCriterionDefinition: RecordValue;
