import * as React from 'react';
import './style/textarea.css';
export interface AutoSizeType {
    minRows?: number;
    maxRows?: number;
}
export interface TextareaProps {
    type?: 'menu-bg' | 'assist-bg';
    status?: 'warning' | 'error' | 'success';
    value?: string | number;
    defaultValue?: string | number;
    placeholder?: string;
    disabled?: boolean;
    className?: string;
    id?: string;
    block?: boolean;
    onChange?: (e: React.ChangeEvent) => void;
    onPressEnter?: (e: KeyboardEvent) => void;
    onFocus?: (e: React.ChangeEvent) => void;
    onBlur?: (e: React.ChangeEvent) => void;
    autoSize?: boolean | AutoSizeType;
    style?: React.CSSProperties;
}
export interface TextareaRef {
    dom: HTMLDivElement | null;
    textarea: HTMLTextAreaElement | null;
    focus: () => void;
    blur: () => void;
}
export declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<TextareaRef>>;
export default Textarea;
declare const TextareaMemo: React.MemoExoticComponent<React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<TextareaRef>>>;
export { TextareaMemo };
