import { MatchSorterOptions } from 'match-sorter'; import { SelectFieldOption, SelectFieldGroupByValue } from '../../beta/components/SelectField/types'; export type SyncFilterFn = (options: T[], searchValue: string) => T[]; export declare const defaultSyncFilter: SyncFilterFn; export declare const toSyncFilterFn: (filter: SyncFilterFn | MatchSorterOptions) => SyncFilterFn; /** * Sorts options by group using the provided comparator while maintaining * the original order within each group (stable sort). */ export declare const sortByGroup: (options: T[], groupSorter: (a: SelectFieldGroupByValue, b: SelectFieldGroupByValue) => number) => T[];