import { AutoSizeType } from 'rc-textarea'; import React, { Ref, TextareaHTMLAttributes } from 'react'; import { CommonProps } from './input'; import { WithRef } from '../utils/type'; export type { AutoSizeType }; export interface Props extends CommonProps { /** 最大字数限制,如有则会在右下角展示字数信息 */ maxCount?: number; /** 自适应内容高度 */ autoSize?: boolean | AutoSizeType; /** * 获取 textarea 引用 * * @deprecated use textareaProps.ref instead */ textareaRef?: Ref; /** 需要传给 `textarea` 的属性 */ textareaProps?: WithRef, HTMLTextAreaElement>; } export default function TextArea({ value: valueFromProps, defaultValue, onChange, placeholder, disabled, size, validateStatus, maxCount, autoSize, textareaRef, textareaProps, ...otherProps }: Props): React.JSX.Element; export declare function getTextCount(str: string): number;