import type { SelectOption } from '../fields/field-config.js'; /** Option paired with its stable DOM token. */ export interface SearchOptionEntry { readonly token: string; readonly option: SelectOption; } /** * Filters and optionally sorts local SearchSelect options. * * @param entries - Stable token-option pairs. * @param query - Current user query. * @param locale - BCP 47 matching locale. * @param searchThreshold - Minimum normalized query length before filtering. * @param shouldSortOptions - Whether to sort labels with Intl.Collator. * @returns A new result array without mutating configured options. */ export declare function filterSearchOptions(entries: readonly SearchOptionEntry[], query: string, locale: string, searchThreshold: number, shouldSortOptions: boolean): readonly SearchOptionEntry[];