import React from 'react'; import './style.scss'; import type { DropdownValue, IDropdownProps } from './types'; /** * Dropdown component for selecting a value from a list of items. * * @template T - The type of the value for each dropdown item. * @property {IDropdownProps} props - The props for the Dropdown component. * @property {string} [props.className] - Additional class names to apply to the component. * @property {string} [props.componentSize] - Size modifier for the component (e.g., 'default' | 'compact' | 'large'). * @property {string} [props.error] - Error message to display. * @property {(a: T, b: T) => boolean} [props.equalityCheck] - Custom function to check equality between values. * @property {string} [props.label] - Label for the dropdown. * @property {string} [props.id] - ID for the InputSkeleton wrapper. * @property {string} [props.info] - Info message to display. * @property {IDropdownItem[]} props.items - Array of dropdown items to display. * @property {(item: IDropdownItem) => void} [props.onChange] - Callback fired when the selected item changes. * @property {boolean} [props.overrideDefaultClassName] - If true, does not apply the default class name. * @property {string} [props.placeholder] - Placeholder text to display when no value is selected. * @property {React.CSSProperties} [props.style] - Inline styles to apply to the component. * @property {T} [props.value] - The currently selected value. * @property {React.RefObject} [props.selectRef] - Ref for the underlying select element. * @property {React.RefObject} [props.skeletonRef] - Ref for the InputSkeleton wrapper. * @property {boolean} [props.disabled] - If true, disables the dropdown. * @returns {React.JSX.Element} The rendered Dropdown component. * @remarks * - Supports disabled items and placeholder text. */ export declare function Dropdown({ className, componentSize, error, equalityCheck, label, id, info, items, onChange, overrideDefaultClassName, placeholder, style, value, selectRef, skeletonRef, disabled, }: IDropdownProps): React.JSX.Element;