import React, { Key } from 'react'; import { CSS } from '../utils/objectToCss'; interface Props { id?: string; inputType?: 'text' | 'numeric' | 'email' | 'password'; options: DropdownOptions[]; onChange?: (dropdownValue: string, inputValue: Key) => void; label: string; isErrored?: boolean; errorMessage?: string; isRequired?: boolean; isDisabled?: boolean; isReadOnly?: boolean; selectedKey?: string; inputValue?: string | number; defaultSelectedKey?: string; defaultInputValue?: string | number; onChangeEvent?: (event: React.ChangeEvent) => void; onCopy?: React.ClipboardEventHandler; onCut?: React.ClipboardEventHandler; onPaste?: React.ClipboardEventHandler; onCompositionStart?: React.CompositionEventHandler; onCompositionEnd?: React.CompositionEventHandler; onCompositionUpdate?: React.CompositionEventHandler; onSelect?: React.ReactEventHandler; onBeforeInput?: React.FormEventHandler; onInput?: React.FormEventHandler; onFocus?: (e: React.FocusEvent) => void; onBlur?: (e: React.FocusEvent) => void; onKeyDown?: (e: React.KeyboardEvent) => void; onKeyUp?: (e: React.KeyboardEvent) => void; textfieldPlaceholder?: string; dropdownPlaceholder?: string; autoFocus?: boolean; maxLength?: number; minLength?: number; 'aria-activedescendant'?: string; 'aria-autocomplete'?: 'none' | 'inline' | 'list' | 'both'; 'aria-haspopup'?: boolean | 'false' | 'true' | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog'; 'aria-controls'?: string; 'aria-label'?: string; 'aria-labelledby'?: string; 'aria-describedby'?: string; 'aria-details'?: string; 'aria-errormessage'?: string; css?: CSS; } export type DropdownTextfieldProps = Props & Omit, keyof Props>; export type DropdownOptions = { value: string; icon: React.ReactNode | null; label: string; }; declare const DropdownTextfield: React.ForwardRefExoticComponent, keyof Props> & React.RefAttributes>; export default DropdownTextfield;