import type { ReactNode } from 'react'; /** The end of an option's row: its hint, then the check while it is chosen, on the label's * line rather than the middle of a row with a description under it. */ export declare const pickerEndClassName = "ml-auto flex h-[1lh] shrink-0 items-center gap-2 self-start pl-2"; export declare const pickerHintClassName = "text-xs tabular-nums text-(--theme-muted-text-color)"; /** An option's row in a Select's or a Combobox's list, so both lists look alike: the icon, the * label over its description, and the check at the end. */ export declare const pickerItemClassName: string; /** An option of a Select or a Combobox. */ export interface ComboboxItem { value: Value; label: string; description?: string | undefined; /** Read after the label in place of `description`, for what the row shows in more than * words, such as a count and a status: "24 members, synced". */ accessibleDescription?: string | undefined; icon?: ReactNode; /** Beside the label, such as a tag that marks the option out. */ badge?: ReactNode; /** Short muted text at the row's end, such as a key or a count; read after the label. */ hint?: string | undefined; disabled?: boolean | undefined; } export interface ComboboxGroup { label: string; /** Leads the heading, such as a provider's logo. */ icon?: ReactNode; /** Follows the label, such as who shared the group or a status like "Not responding". */ description?: string | undefined; /** Empty for a group that only reports a status; a search finds it by its heading. */ items: readonly ComboboxLeaf[]; } /** One item: an option, or a bare string labeled by its value. */ export type ComboboxLeaf = ComboboxItem | (Value & string); /** Items, groups under headings, or both: items between groups list where they sit, without a heading. */ export type ComboboxItems = readonly (ComboboxLeaf | ComboboxGroup)[]; /** How an option is named and described: by its label, with its description read after it. */ export declare function optionNaming(id: string, item: Pick, 'description' | 'accessibleDescription' | 'hint'>): { 'aria-labelledby': string; 'aria-describedby': string | undefined; }; export declare function isComboboxGroup(item: ComboboxLeaf | ComboboxGroup): item is ComboboxGroup; /** Every item, out of their groups. */ export declare function comboboxLeaves(items: ComboboxItems): ComboboxLeaf[];