import type { ChangeEvent, ReactNode } from 'react'; import type { Except } from 'type-fest'; import type { DropdownProps } from '../Dropdown'; interface Choice { value: Value; label?: string; active?: boolean; } type NativeSelectCallback = (value: Values, e: ChangeEvent) => void; interface BaseDropdownSelectProps extends Except, 'label' | 'value' | 'onSelectItem' | 'variant' | 'children'> { name?: string; choices: Choice[]; value?: Values; placeholder?: string; onChange?: DropdownProps['onSelectItem'] | NativeSelectCallback; } interface DropdownSelectWithPlaceholderProps extends BaseDropdownSelectProps { placeholder: string; } interface DropdownSelectWithValueProps extends BaseDropdownSelectProps { value: Values; } interface DropdownSelectWithValueAndPlaceholderProps extends BaseDropdownSelectProps { value: Values; } export type DropdownSelectProps = DropdownSelectWithPlaceholderProps | DropdownSelectWithValueProps | DropdownSelectWithValueAndPlaceholderProps; export declare function DropdownSelect(props: DropdownSelectProps): ReactNode; export {}; //# sourceMappingURL=index.d.ts.map