import type React from 'react'; import type { FocusDetail, InputDetail, KeyboardDetail, OptionGroup, SelectDetail, SelectOption } from './types.js'; export interface SelectRef extends HTMLElement { /** Opens the dropdown. */ open(): void; /** Closes the dropdown. */ close(): void; /** Focuses the trigger button. */ focus(): void; /** Returns the current selection. A single string in single mode, a string array in `mode="multiple"` — matching the shape of `cx-change`'s `detail.value`. */ getValue(): string | string[]; /** Sets the selection programmatically. Accepts an array in `mode="multiple"`. */ setValue(value: string | string[]): void; } /** * Pass options via the typed `items` (SelectOption[]) or `groups` (OptionGroup[]) properties. * Do not use `