import * as React from 'react'; import { Omit } from '../_util/types'; export declare type TextAreaEventHandle = (val?: string) => void; export declare type HTMLTextAreaProps = Omit, 'onChange' | 'onFocus' | 'onBlur' | 'value' | 'defaultValue' | 'type' | 'title' | 'label'>; export interface TextareaPropsType { title?: React.ReactNode; maxLength?: number; name?: string; value?: string; defaultValue?: string; placeholder?: string; clear?: boolean; showCounter?: ((currentNumber?: number, total?: number) => React.ReactNode) | boolean; rows?: number; count?: number; allowClear?: boolean; error?: boolean; onErrorClick?: () => void; autoSize?: boolean | { minRows: number; maxRows: number; }; readOnly?: boolean; disabled?: boolean; labelNumber?: number; onChange?: TextAreaEventHandle; onBlur?: TextAreaEventHandle; onFocus?: TextAreaEventHandle; } export interface TextareaProps extends TextareaPropsType, HTMLTextAreaProps { prefixCls?: string; prefixListCls?: string; label?: React.ReactNode; } export interface TextareaItemProps extends TextareaProps { prefixCls?: string; prefixListCls?: string; label?: React.ReactNode; }