import * as _angular_core from '@angular/core';
import { OnInit, AfterViewInit, OnDestroy, ElementRef } from '@angular/core';
import { FormGroup } from '@angular/forms';
import { MatFormFieldAppearance, FloatLabelType } from '@angular/material/form-field';
import { SdViewDefDirective, SdLabelDefDirective, SdSuffixDefDirective } from '@sdcorejs/angular/forms/directives';
import { SdViewed, SdViewedInput, SdCustomValidator, SdFormControl } from '@sdcorejs/angular/forms/models';
import { Size } from '@sdcorejs/utils/models';

declare class SdTextarea implements OnInit, AfterViewInit, OnDestroy {
    #private;
    id: string;
    textareaRef: _angular_core.Signal<ElementRef<HTMLTextAreaElement> | undefined>;
    sdViewDef: _angular_core.Signal<SdViewDefDirective<any, any> | undefined>;
    sdLabelDef: _angular_core.Signal<SdLabelDefDirective | undefined>;
    sdSuffixDef: _angular_core.Signal<SdSuffixDefDirective | undefined>;
    autoIdInput: _angular_core.InputSignal<string | null | undefined>;
    autoId: _angular_core.Signal<string | undefined>;
    readonly dataDisabled: _angular_core.Signal<"true" | "false">;
    readonly dataInvalid: _angular_core.Signal<"true" | "false">;
    readonly dataEmpty: _angular_core.Signal<"true" | "false">;
    readonly dataValue: _angular_core.Signal<string>;
    readonly dataRequired: _angular_core.Signal<"true" | "false">;
    readonly dataMaxLength: _angular_core.Signal<string | null>;
    readonly dataPattern: _angular_core.Signal<string | null>;
    readonly dataErrorMessage: _angular_core.Signal<string | null>;
    name: _angular_core.InputSignal<string>;
    size: _angular_core.InputSignal<Size>;
    form: _angular_core.InputSignalWithTransform<FormGroup<any> | undefined, any>;
    label: _angular_core.InputSignalWithTransform<string | undefined, string | null | undefined>;
    helperText: _angular_core.InputSignalWithTransform<string | undefined, string | null | undefined>;
    placeholder: _angular_core.InputSignalWithTransform<string | undefined, string | null | undefined>;
    rows: _angular_core.InputSignal<number>;
    hideInlineError: _angular_core.InputSignalWithTransform<boolean, unknown>;
    required: _angular_core.InputSignalWithTransform<boolean, unknown>;
    disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
    /** Display mode: `false` edit · `true` static view · `'inline'` borderless inline-edit (textarea reads like text). */
    viewed: _angular_core.InputSignalWithTransform<SdViewed, SdViewedInput>;
    autoHeight: _angular_core.InputSignalWithTransform<boolean, unknown>;
    /** `true` when `viewed === 'inline'`. */
    readonly isInline: _angular_core.Signal<boolean>;
    /** `true` when `viewed === true` (static view, no editor). */
    readonly isViewed: _angular_core.Signal<boolean>;
    /** Focus the inline textarea. No-op unless `viewed='inline'`. */
    enterInlineEdit: () => void;
    maxlength: _angular_core.InputSignalWithTransform<number | null, unknown>;
    pattern: _angular_core.InputSignalWithTransform<string | undefined, string | null | undefined>;
    validator: _angular_core.InputSignal<SdCustomValidator | undefined>;
    inlineError: _angular_core.InputSignalWithTransform<string | undefined, string | null | undefined>;
    /**
     * Tổng hợp error message để hiển thị trong tooltip khi hideInlineError = true.
     */
    readonly errorMessage: _angular_core.Signal<string | undefined>;
    appearanceInput: _angular_core.InputSignal<MatFormFieldAppearance | undefined>;
    appearance: _angular_core.Signal<MatFormFieldAppearance>;
    floatLabel: _angular_core.InputSignal<FloatLabelType>;
    valueModel: _angular_core.ModelSignal<any>;
    sdChange: _angular_core.OutputEmitterRef<any>;
    formControl: SdFormControl;
    isFocused: boolean;
    constructor();
    ngOnInit(): void;
    ngAfterViewInit(): void;
    ngOnDestroy(): void;
    onFocus: () => void;
    onBlur: () => void;
    onClick: () => void;
    blur: () => void;
    focus: () => void;
    getCurrentLength: () => number;
    isMaxlengthExceeded: () => boolean;
    static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdTextarea, never>;
    static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdTextarea, "sd-textarea", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "helperText": { "alias": "helperText"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "hideInlineError": { "alias": "hideInlineError"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "viewed": { "alias": "viewed"; "required": false; "isSignal": true; }; "autoHeight": { "alias": "autoHeight"; "required": false; "isSignal": true; }; "maxlength": { "alias": "maxlength"; "required": false; "isSignal": true; }; "pattern": { "alias": "pattern"; "required": false; "isSignal": true; }; "validator": { "alias": "validator"; "required": false; "isSignal": true; }; "inlineError": { "alias": "inlineError"; "required": false; "isSignal": true; }; "appearanceInput": { "alias": "appearance"; "required": false; "isSignal": true; }; "floatLabel": { "alias": "floatLabel"; "required": false; "isSignal": true; }; "valueModel": { "alias": "model"; "required": false; "isSignal": true; }; }, { "valueModel": "modelChange"; "sdChange": "sdChange"; }, ["sdViewDef", "sdLabelDef", "sdSuffixDef"], never, true, never>;
}

export { SdTextarea };
