import { ComponentPropsWithoutRef, MutableRefObject, MouseEventHandler, ReactNode } from 'react'; import { ChipProps } from '../../Chip'; import { FieldLabelProps } from '../../FieldLabel'; import { TextFieldProps } from '../../TextField'; import { DistributiveOmit } from '../../../types'; type PartialChipProps = Partial> & ({ icon?: ChipProps["icon"]; avatar?: never; } | { icon?: never; avatar?: ChipProps["avatar"]; }); export type SelectTriggerBaseProps = DistributiveOmit & { /** * Should be a positive integer. */ maxRows?: number; /** Allows Combobox/Select to display custom-colored Chips */ selectedItemProps?: (item: Item, index: number) => PartialChipProps; } & { itemToString?: (item: Item) => string; removeSelectedItem?: (item: Item) => void; disableClearSelection?: boolean; selectedItem: Item | null; selectedItems: Item[]; inputValue?: string; referenceRef?: MutableRefObject; } & { variant?: "select" | "combobox"; onClearButtonClick?: MouseEventHandler; labelProps?: Partial; inputWrapperProps?: ComponentPropsWithoutRef<"div">; toggleButtonProps?: ComponentPropsWithoutRef<"button">; chipProps?: (item: Item, index: number) => PartialChipProps; inputProps?: ComponentPropsWithoutRef<"input" | "div">; } & { prefix?: string | ReactNode; }; export declare const SelectTriggerBase: ({ className, label, size, error, hint, description, prefix, suffix, maxRows, selectedItemProps, disabled, readOnly, disableClearSelection, itemToString: itemToStringProp, selectedItem, selectedItems, removeSelectedItem, inputValue, referenceRef, variant, onClearButtonClick, labelProps, inputWrapperProps, toggleButtonProps, inputProps, chipProps, warning, placeholder, ...rest }: SelectTriggerBaseProps) => import("react/jsx-runtime").JSX.Element; export {};