import { CommandInput } from './command'; import { ButtonHTMLAttributes, ComponentProps, ComponentType, RefAttributes } from 'react'; import * as PopoverPrimitive from '@radix-ui/react-popover'; export interface SelectOption { label: string; value: T; } export interface SelectUIComponents { Trigger?: ComponentType & RefAttributes>; Item?: ComponentType & { selected?: boolean; } & RefAttributes>; SearchInput?: ComponentType>; CheckIcon?: React.ComponentType>; ChevronIcon?: React.ComponentType>; } export type SelectContentProps = Pick, 'align' | 'side' | 'sideOffset'>; export interface SelectProps extends Omit, 'value' | 'onChange'> { options: SelectOption[]; value?: T; onValueChange?: (value: T) => void; placeholder?: string; disabled?: boolean; className?: string; contentClassName?: string; itemClassName?: string; contentProps?: SelectContentProps; components?: Partial; searchable?: boolean; searchInputProps?: React.ComponentPropsWithoutRef; creatable?: boolean; onCreateOption?: (input: string) => SelectOption | Promise>; createOptionLabel?: (input: string) => string; } export declare function Select({ options, value, onValueChange, placeholder, disabled, className, contentClassName, itemClassName, contentProps, components, searchable, searchInputProps, creatable, onCreateOption, createOptionLabel, ...buttonProps }: SelectProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=select.d.ts.map