import { type ReactNode } from "react"; import { type IAccessibilityConfigBase } from "../../typings/accessibility.js"; /** * @internal */ export interface IUiSearchableSelectProps { accessibilityConfig: IAccessibilityConfigBase; children: ReactNode; /** * Whether the dropdown is open when it mounts (uncontrolled, like `defaultOpen` in React Aria). * Defaults to `false`. */ defaultOpen?: boolean; /** * Whether an item matches the search query. Defaults to the item's title containing the query. Called only * while searching: without a query, all items show. */ filter?: (item: T, query: string) => boolean; isOpen?: boolean; items: T[]; onChange: (value: string) => void; onOpenChange?: (isOpen: boolean) => void; placeholder: string; /** * Only null for now as proper custom anchor is not needed. Null is supported only in fullscreen mode as * desktop mode would for that need `anchorRef` prop or something similar which is not needed. * You can extend this if you find the need for any of those in the future. */ renderButton?: null; shouldCloseOnSelect?: boolean; /** * The heading of the full-screen view on mobile, which also names its dialog. */ title: string; value: string | null; } /** * @internal */ export declare function UiSearchableSelect({ accessibilityConfig, children, items, filter, placeholder, title, defaultOpen, isOpen, onOpenChange, renderButton: renderButtonProp, shouldCloseOnSelect, value, onChange, }: IUiSearchableSelectProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=UiSearchableSelect.d.ts.map