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

declare class SdDate implements OnDestroy, OnInit {
    #private;
    id: string;
    inputRef: _angular_core.Signal<ElementRef<HTMLInputElement> | undefined>;
    datePicker: _angular_core.Signal<MatDatepicker<Date> | undefined>;
    sdLabelTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
    sdValueTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
    sdViewDef: _angular_core.Signal<SdViewDefDirective<any, any> | undefined>;
    sdLabelDef: _angular_core.Signal<SdLabelDefDirective | undefined>;
    private ref;
    private formConfig;
    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 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.InputSignal<string | undefined>;
    helperText: _angular_core.InputSignal<string | undefined>;
    placeholder: _angular_core.InputSignal<string | undefined>;
    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'` view + click-to-edit (calendar). */
    viewed: _angular_core.InputSignalWithTransform<SdViewed, SdViewedInput>;
    /** In `viewed='inline'`, show a hover clear-× on the text face. Set `false` when the host owns removal (chips). */
    clearable: _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>;
    /** Open the calendar from the inline text face. No-op unless `viewed='inline'`. */
    enterInlineEdit: () => void;
    /** View display template: `sdViewDef` overrides the projected `#sdValue` (unified). */
    readonly viewTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
    inlineError: _angular_core.InputSignal<string | undefined>;
    /**
     * Tổng hợp error message để hiển thị trong tooltip khi hideInlineError = true.
     */
    readonly errorMessage: _angular_core.Signal<string | undefined>;
    hyperlink: _angular_core.InputSignal<string | null | undefined>;
    appearanceInput: _angular_core.InputSignal<MatFormFieldAppearance | undefined>;
    appearance: _angular_core.Signal<MatFormFieldAppearance>;
    floatLabel: _angular_core.InputSignal<FloatLabelType>;
    minInput: _angular_core.InputSignal<any>;
    minDateInput: _angular_core.InputSignal<any>;
    resolvedMin: _angular_core.Signal<Date | null>;
    maxInput: _angular_core.InputSignal<any>;
    maxDateInput: _angular_core.InputSignal<any>;
    resolvedMax: _angular_core.Signal<Date | null>;
    valueModel: _angular_core.ModelSignal<string | number | Date | null | undefined>;
    sdChange: _angular_core.OutputEmitterRef<any>;
    sdFocus: _angular_core.OutputEmitterRef<void>;
    isMobileOrTablet: boolean;
    formControl: SdFormControl;
    isFocused: boolean;
    isValid?: boolean;
    constructor();
    ngOnInit(): void;
    ngOnDestroy(): void;
    onFocus: () => void;
    onBlur: () => void;
    onClick: () => void;
    blur: () => void;
    focus: () => void;
    /** Open the datepicker calendar programmatically (anchors to the field input). */
    open: () => void;
    focusInputElement(): void;
    onKeyDown: (event: KeyboardEvent) => boolean;
    onKeyup: (event: any) => void;
    onChange: (event: MatDatepickerInputEvent<Date>) => void;
    clear: ($event: any) => void;
    static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdDate, never>;
    static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdDate, "sd-date", 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; }; "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; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "inlineError": { "alias": "inlineError"; "required": false; "isSignal": true; }; "hyperlink": { "alias": "hyperlink"; "required": false; "isSignal": true; }; "appearanceInput": { "alias": "appearance"; "required": false; "isSignal": true; }; "floatLabel": { "alias": "floatLabel"; "required": false; "isSignal": true; }; "minInput": { "alias": "min"; "required": false; "isSignal": true; }; "minDateInput": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxInput": { "alias": "max"; "required": false; "isSignal": true; }; "maxDateInput": { "alias": "maxDate"; "required": false; "isSignal": true; }; "valueModel": { "alias": "model"; "required": false; "isSignal": true; }; }, { "valueModel": "modelChange"; "sdChange": "sdChange"; "sdFocus": "sdFocus"; }, ["sdLabelTemplate", "sdValueTemplate", "sdViewDef", "sdLabelDef"], ["[sdLabel]"], true, never>;
}

export { SdDate };
