import React from 'react'; import type { ReactElement } from 'react'; import { ListboxOptionsList } from './ListboxOptionsList'; import { ListboxOption } from './ListboxOption'; import { ListboxButton } from './ListboxButton'; import { PolymorphicComponentWithDynamicChildren } from '../../types'; interface ListboxChildrenProps { open: boolean; } declare type Props = { multiSelect?: Multiselect; value?: Multiselect extends true ? Array : Value; onChange?: (value: Multiselect extends true ? Array : Value) => void; }; declare const DEFAULT_ELEMENT = "fragment"; declare function Listbox(props: PolymorphicComponentWithDynamicChildren, ListboxChildrenProps>): ReactElement; declare namespace Listbox { var displayName: string; var Option: typeof ListboxOption; var OptionsList: typeof ListboxOptionsList; var Button: typeof ListboxButton; } export { Listbox };