import * as solid_js from 'solid-js'; import { JSX, ValidComponent, Accessor } from 'solid-js'; import { ElementOf, PolymorphicProps } from './polymorphic/index.js'; import { a as CollectionNode, C as Collection } from './types-f8ae18e5.js'; import { L as ListState, K as KeyboardDelegate, F as FocusStrategy, a as SelectionBehavior, S as SelectionMode } from './create-list-state-d9a0f1f2.js'; interface ListboxItemDataSet { "data-disabled": string | undefined; "data-selected": string | undefined; "data-highlighted": string | undefined; } interface ListboxItemOptions { /** The collection node to render. */ item: CollectionNode; } interface ListboxItemCommonProps { id: string; ref: T | ((el: T) => void); "aria-label": string | undefined; "aria-labelledby": string | undefined; "aria-describedby": string | undefined; onPointerMove: JSX.EventHandlerUnion; onPointerDown: JSX.EventHandlerUnion; onPointerUp: JSX.EventHandlerUnion; onClick: JSX.EventHandlerUnion; onKeyDown: JSX.EventHandlerUnion; onMouseDown: JSX.EventHandlerUnion; onFocus: JSX.EventHandlerUnion; } interface ListboxItemRenderProps extends ListboxItemCommonProps, ListboxItemDataSet { role: "option"; tabIndex: number | undefined; "aria-disabled": boolean; "aria-selected": boolean | undefined; "aria-posinset": number | undefined; "aria-setsize": number | undefined; "data-key": string | undefined; } type ListboxItemProps = ListboxItemOptions & Partial>>; /** * An item of the listbox. */ declare function ListboxItem(props: PolymorphicProps>): JSX.Element; interface ListboxItemDescriptionOptions { } interface ListboxItemDescriptionCommonProps { id: string; } interface ListboxItemDescriptionRenderProps extends ListboxItemDescriptionCommonProps, ListboxItemDataSet { } type ListboxItemDescriptionProps = ListboxItemDescriptionOptions & Partial>>; /** * An optional accessible description to be announced for the item. * Useful for items that have more complex content (e.g. icons, multiple lines of text, etc.) */ declare function ListboxItemDescription(props: PolymorphicProps>): solid_js.JSX.Element; interface ListboxItemLabelOptions { } interface ListboxItemLabelCommonProps { id: string; } interface ListboxItemLabelRenderProps extends ListboxItemLabelCommonProps, ListboxItemDataSet { } type ListboxItemLabelProps = ListboxItemLabelOptions & Partial>>; /** * An accessible label to be announced for the item. * Useful for items that have more complex content (e.g. icons, multiple lines of text, etc.) */ declare function ListboxItemLabel(props: PolymorphicProps>): solid_js.JSX.Element; interface ListboxRootOptions { /** The controlled value of the listbox. */ value?: Iterable; /** * The value of the listbox when initially rendered. * Useful when you do not need to control the state. */ defaultValue?: Iterable; /** Event handler called when the value changes. */ onChange?: (value: Set) => void; /** An array of options to display as the available options. */ options?: Array