import * as React from 'react'; import { TextareaProps } from './PropsType'; import TextareaItem from './TextareaItem'; import { ConfigConsumerProps } from '../config-provider'; declare function noop(): void; export interface TextareaState { focus?: boolean; value?: string; } declare class Textarea extends React.Component { static Item: typeof TextareaItem; static defaultProps: { autoSize: boolean; disabled: boolean; readOnly: boolean; placeholder: string; rows: number; onChange: typeof noop; onBlur: typeof noop; onFocus: typeof noop; labelNumber: number; }; static getDerivedStateFromProps(nextProps: TextareaProps): { value: string; } | null; textareaRef: HTMLTextAreaElement; textareaHidden: HTMLTextAreaElement; private height; private debounceTimeout; constructor(props: TextareaProps); focus: () => void; componentDidMount(): void; componentDidUpdate(): void; reAlignHeight: () => void; componentWillUnmount(): void; onChange: (e: React.ChangeEvent) => void; onBlur: (e: React.FocusEvent) => void; onFocus: (e: React.FocusEvent) => void; clearInput: () => void; renderTextarea: ({ getPrefixCls }: ConfigConsumerProps) => JSX.Element; render(): JSX.Element; } export default Textarea;