import type { ButtonProps } from '@blueprintjs/core'; import type { SelectProps } from '@blueprintjs/select'; import type { ForwardedRef, ReactNode } from 'react'; import { useSelect } from 'react-science/ui'; import type { FilterType } from '../utility/filterType.js'; interface ItemOptions { renderItem?: (item: T) => ReactNode; defaultSelectedItem?: T; } interface ItemSelectOptions = SelectDefaultItem> { itemTextKey?: keyof FilterType; itemValueKey?: keyof T; selectedItemValue?: T[keyof T]; placeholder?: string; filterPlaceholder?: string; getSelectedText?: (item: T) => string; } type SelectOptions = SelectDefaultItem> = ItemOptions & ItemSelectOptions; type ReturnedUseSelectOptions = ReturnType; export type Select2Props = SelectDefaultItem> = Omit, keyof Omit> & SelectOptions & { selectedButtonProps?: Omit; } & Pick; export interface SelectDefaultItem { label: string; value: any; } declare function InnerSelect2 = SelectDefaultItem>(props: Select2Props, ref: any): import("react/jsx-runtime").JSX.Element; export declare const Select2: = SelectDefaultItem>(props: Select2Props & { ref?: ForwardedRef; }) => ReturnType; export {}; //# sourceMappingURL=Select2.d.ts.map