import { type ReactNode } from "react"; import { type IUiListboxItem, type IUiListboxProps } from "./types.js"; /** * An accessible listbox component that can be navigated by keyboard. * Usable in a component. * Should implement https://www.w3.org/WAI/ARIA/apg/patterns/listbox/ * * @internal */ export declare function UiListbox({ items: rawItems, dataTestId, itemDataTestId, width, maxWidth, maxHeight, onSelect, onClose, onUnhandledKeyDown, selectedItemId, InteractiveItemComponent, StaticItemComponent, shouldKeyboardActionPreventDefault, shouldKeyboardActionStopPropagation, shouldCloseOnSelect, shouldSelectOnOptionClick, isDisabledFocusable, focusedItemId, onFocusedItemIdChange, isCompact, padding, supportedViews, reference, ariaAttributes, }: IUiListboxProps): ReactNode; export declare const makeItemId: (listboxId: string, item?: IUiListboxItem) => string | undefined; /** * The next focusable item of the list in a direction; at the first and the last item, it stays there. Without * a current item, down starts at the first item and up at the last. Dividers, static and disabled items are * skipped. For moving the focusedItemId of a list with virtual focus. * * @internal */ export declare function getNextFocusableItemId({ items, focusedItemId, direction, }: { items: IUiListboxItem[]; focusedItemId: string | null; direction: "down" | "up"; }): string | null; //# sourceMappingURL=UiListbox.d.ts.map