import * as _angular_core from '@angular/core';
import { OnDestroy, OnInit, AfterViewInit, ElementRef, TemplateRef, EventEmitter } from '@angular/core';
import { FormGroup, FormControl, FormGroupDirective, NgForm } from '@angular/forms';
import { ErrorStateMatcher } from '@angular/material/core';
import { MatFormFieldAppearance, FloatLabelType } from '@angular/material/form-field';
import { SdInlineText } from '@sdcorejs/angular/forms/inline-text';
import { SdViewDefDirective, SdSuffixDefDirective } from '@sdcorejs/angular/forms/directives';
import { SdViewed, SdViewedInput, SdCustomValidator, SdFormControl } from '@sdcorejs/angular/forms/models';
import { Size } from '@sdcorejs/utils/models';

declare class SdInputNumberErrotStateMatcher implements ErrorStateMatcher {
    private formControl;
    constructor(formControl: FormControl);
    isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean;
}
declare class SdInputNumber implements OnDestroy, OnInit, AfterViewInit {
    #private;
    id: string;
    control: _angular_core.Signal<ElementRef<HTMLInputElement> | undefined>;
    /** The inline primitive — only present when `viewed='inline'`; drives focus/blur in that mode. */
    inlineRef: _angular_core.Signal<SdInlineText | undefined>;
    sdLabelTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
    sdValueTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
    sdViewDef: _angular_core.Signal<SdViewDefDirective<any, any> | undefined>;
    sdSuffixDef: _angular_core.Signal<SdSuffixDefDirective | undefined>;
    private ref;
    private coreConfiguration;
    private formatNumberPipe;
    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>;
    blurOnEnter: _angular_core.InputSignalWithTransform<boolean, unknown>;
    required: _angular_core.InputSignalWithTransform<boolean, unknown>;
    readonly: _angular_core.InputSignalWithTransform<boolean, unknown>;
    disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
    /** Display mode: `false` edit · `true` static view · `'inline'` borderless inline-edit (input IS the face). */
    viewed: _angular_core.InputSignalWithTransform<SdViewed, SdViewedInput>;
    /** `true` when `viewed === 'inline'`. */
    readonly isInline: _angular_core.Signal<boolean>;
    /** `true` when `viewed === true` (static view, no input). */
    readonly isViewed: _angular_core.Signal<boolean>;
    /** Focus the inline input. No-op unless `viewed='inline'`. */
    enterInlineEdit: () => void;
    /** View display template: `sdViewDef` overrides the projected `#sdValue` for the static view (unified). */
    readonly viewTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
    type: _angular_core.InputSignal<"negative" | "positive" | undefined>;
    precision: _angular_core.InputSignal<number>;
    format: _angular_core.InputSignal<"1,234,567.89" | "1.234.567,89" | undefined>;
    min: _angular_core.InputSignalWithTransform<number | undefined, unknown>;
    max: _angular_core.InputSignalWithTransform<number | undefined, unknown>;
    validator: _angular_core.InputSignal<SdCustomValidator | 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>;
    valueModel: _angular_core.ModelSignal<any>;
    sdChange: _angular_core.OutputEmitterRef<any>;
    sdFocus: _angular_core.OutputEmitterRef<void>;
    sdBlur: _angular_core.OutputEmitterRef<any>;
    keyupEnter: _angular_core.OutputEmitterRef<any>;
    cleared: _angular_core.OutputEmitterRef<void>;
    sdFocusForceBlur: EventEmitter<void>;
    formControl: SdFormControl;
    inputControl: SdFormControl;
    matcher: SdInputNumberErrotStateMatcher;
    isFocused: boolean;
    decimalSeparator: _angular_core.Signal<"." | ",">;
    thousandsSeparator: _angular_core.Signal<"." | ",">;
    regexPattern: _angular_core.Signal<string>;
    constructor();
    ngOnInit(): void;
    ngAfterViewInit(): void;
    ngOnDestroy(): void;
    reValidate: () => void;
    showClear: () => boolean;
    clear: ($event?: Event) => void;
    onKeyupEnter: () => void;
    onKeydown: (event: KeyboardEvent) => void;
    onPaste(event: ClipboardEvent): void;
    onCompositionEnd(event: CompositionEvent): void;
    onCompositionStart(event: CompositionEvent): void;
    onFocus: () => void;
    onBlur: () => void;
    onClick: () => void;
    blur: () => void;
    focus: () => void;
    static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdInputNumber, never>;
    static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdInputNumber, "sd-input-number", 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; }; "blurOnEnter": { "alias": "blurOnEnter"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "viewed": { "alias": "viewed"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "precision": { "alias": "precision"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "validator": { "alias": "validator"; "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; }; "valueModel": { "alias": "model"; "required": false; "isSignal": true; }; }, { "valueModel": "modelChange"; "sdChange": "sdChange"; "sdFocus": "sdFocus"; "sdBlur": "sdBlur"; "keyupEnter": "keyupEnter"; "cleared": "cleared"; "sdFocusForceBlur": "sdFocusForceBlur"; }, ["sdLabelTemplate", "sdValueTemplate", "sdViewDef", "sdSuffixDef"], ["[sdLabel]"], true, never>;
}

export { SdInputNumber };
