import React from 'react'; import { CSS } from '../utils/objectToCss'; interface Props { css?: CSS; id?: string; label?: React.ReactNode; cols?: number; rows?: number; tabIndex?: number; wrap?: string; autoCapitalize?: string; isErrored?: boolean; isRequired?: boolean; isDisabled?: boolean; isReadOnly?: boolean; validationState?: 'valid' | 'invalid'; description?: React.ReactNode; placeholder?: string; value?: string; defaultValue?: string; helperText?: string; autoComplete?: string; maxLength?: number; minLength?: number; wordCount?: boolean; name?: string; pattern?: string; excludeFromTabOrder?: boolean; errorMessage?: string; textareaRef?: React.RefObject; onChangeEvent?: (event: React.ChangeEvent) => void; onChange?: (value: string) => 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; autoFocus?: boolean; '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; resizable?: boolean; } export type TextareaProps = Props & Omit, keyof Props>; declare const Textarea: React.ForwardRefExoticComponent, keyof Props> & React.RefAttributes>; export default Textarea;