import { TextareaConfig } from './types';
export declare class Textarea {
    readonly el: HTMLDivElement;
    readonly textareaEl: HTMLTextAreaElement;
    private readonly textareaId;
    private countEl;
    private readonly maxLength;
    private readonly autoResize;
    private readonly handlers;
    constructor(config: TextareaConfig);
    /** Get the current textarea value */
    getValue(): string;
    /** Set the textarea value */
    setValue(value: string): void;
    /** Toggle the disabled state */
    setDisabled(disabled: boolean): void;
    /** Toggle the error state */
    setError(error: boolean): void;
    /** Remove from the DOM and clean up event listeners */
    destroy(): void;
    private adjustHeight;
    private updateCharCount;
}
//# sourceMappingURL=textarea.d.ts.map