/** * @license * Copyright Datorama. All Rights Reserved. * * Use of this source code is governed by an Apache License 2.0 license that can be * found in the LICENSE file at https://github.com/datorama/client-core/blob/master/LICENSE */ export declare enum COMPARE_RESULT { EXACT = 1, STARTS_WITH = 2, CONTAINS = 3, NO_MATCH = Infinity } /** * How groups should be ordered in search with consideration to their children, as defined by product. 1. group - exact, option - exact 2. group - start, option - exact 3. group - contains, option - exact 4. group - no exact, option - exact 5. group - exact, option - start 6. group - exact, option - contains 7. group - exact, option - no match 8. group - start, option - start 9. group - contains, option - start 10. group - no match, option - start 11. group - start, option - contains 12. group - start, option - no match 13. group - contains, option - contains 14. group - no match, option - contains 15. group - contains, option - no match */ export declare const groupSortOrder: { group: COMPARE_RESULT; children: COMPARE_RESULT; }[]; /** * Sorting by: * Exact, Starts with, Contains */ export declare function compareWith(term: string): (value: string) => COMPARE_RESULT;