import { ReactNode } from 'react'; import { ItemType } from './types'; interface CommonProps { autocomplete?: boolean; autocompleteMode?: 'auto' | 'manual'; searchValue?: string; onSearch?: (value: string) => void; defaultSearchValue?: string; } interface SelectContextValue extends CommonProps { value?: string | string[]; registerItem: (item: ItemType) => void; unregisterItem: (value: string) => void; multiple: boolean; items: Record; hasItems?: boolean; } interface UseSelectContext extends SelectContextValue { shouldFilter?: boolean; } export declare const useSelectContext: () => UseSelectContext; export interface BaseSelectProps extends CommonProps { children?: ReactNode; open?: boolean; defaultOpen?: boolean; onOpenChange?: (open: boolean) => void; disabled?: boolean; required?: boolean; name?: string; items?: string[]; } export interface SingleSelectProps extends BaseSelectProps { multiple?: false; value?: string; onValueChange?: (value: string) => void; defaultValue?: string; } export interface MultipleSelectProps extends BaseSelectProps { multiple: true; value?: string[]; onValueChange?: (value: string[]) => void; defaultValue?: string[]; } export type SelectRootProps = SingleSelectProps | MultipleSelectProps; export declare const SelectRoot: { (props: SelectRootProps): import("react/jsx-runtime").JSX.Element; displayName: string; }; export {}; //# sourceMappingURL=select-root.d.ts.map