/** * * This file may have been modified by Bytedance Inc. (“Bytedance Inc.'s Modifications”). * All Bytedance Inc.'s Modifications are Copyright (year) Bytedance Inc.. * * This source code is licensed under the Apache license. * See LICENSE file in the project root for license information. * */ import * as React from 'react'; import { TextAreaProps as RcTextAreaProps } from 'rc-textarea'; import ResizableTextArea from 'rc-textarea/es/ResizableTextArea'; import { InputFocusOptions } from './Input'; import { SizeType } from '../../config-provider/component/SizeContext'; interface ShowCountProps { formatter: (args: { count: number; maxLength?: number; }) => string; } export interface TextAreaProps extends RcTextAreaProps { allowClear?: boolean; bordered?: boolean; showCount?: boolean | ShowCountProps; size?: SizeType; } export interface TextAreaRef { focus: (options?: InputFocusOptions) => void; blur: () => void; resizableTextArea?: ResizableTextArea; } declare const TextArea: React.ForwardRefExoticComponent>; export default TextArea;