import { ReactNode } from 'react'; /** * Below this many options a search box is more chrome than help. The same * number the field picker uses, so the two searches appear at the same point * rather than at two numbers picked separately. */ export declare const SELECT_SEARCH_THRESHOLD = 6; /** * Option search. Matches the label and the hint — the hint carries a mailing * list's description, so a word from the description finds the list, the way * field search matches a field's description. Whitespace-separated terms must * all match, in any order, so "news weekly" finds "Weekly newsletter". */ export declare function matchesSelectQuery(option: Pick, 'label' | 'hint'>, query: string): boolean; export interface SelectOption { value: T; label: string; /** Optional leading icon (inline SVG / element). Rendered in the trigger and the row. */ icon?: ReactNode; /** Optional second line under the label in the open menu. */ hint?: string; } /** * A styled dropdown that replaces the native