import { UseFuseOptions } from "../../../hooks"; import { SearchableSelectItem, SearchableSelectItemProps } from "./SearchableSelectItem"; import { SearchableSelectPrimitive, SearchableSelectPrimitiveProps } from "./SearchableSelectPrimitive"; export type SearchableSelectOption = { value: string; label?: string; className?: string; badge?: SearchableSelectItemProps["badge"]; disabled?: boolean; [key: string]: unknown; }; export type SearchableSelectProps = Omit & Readonly<{ isSearchable?: boolean; searchPlaceholder?: string; searchNoResultLabel?: string; options?: SearchableSelectOption[]; /** * If true, options will be rendered as a raw React node returned by the `renderOption` prop. * Otherwise, options will be rendered as a DropdownMenuSingleSelectionItem. */ rawOption?: boolean; renderOption?: (option: SearchableSelectOption) => React.ReactNode; renderValue?: (value: string) => React.ReactNode; contentClassName?: string; fuseOptions?: Omit, "matchAllOnEmptyQuery" | "useExtendedSearch">; clearLabel?: string; listMinHeight?: string; virtualized?: boolean; virtualizedListHeight?: string | number; }> & React.RefAttributes; export declare function SearchableSelect({ isSearchable, value: outerValue, defaultValue, onValueChange, searchPlaceholder, searchNoResultLabel, options, rawOption, renderOption, renderValue, fuseOptions, clearLabel, listMinHeight, virtualized, virtualizedListHeight, multiline, side, ref, onOpenChange, ...props }: SearchableSelectProps): import("react").JSX.Element; export declare namespace SearchableSelect { var displayName: string; export { SearchableSelectPrimitive as Primitive }; export { SearchableSelectItem as Item }; } //# sourceMappingURL=SearchableSelect.d.ts.map