import { AfterViewInit, ElementRef, EventEmitter, OnDestroy, OnInit, TemplateRef } from '@angular/core';
import { FormControl, FormGroupDirective, NgForm, ValidatorFn } from '@angular/forms';
import { MatAutocompleteTrigger } from '@angular/material/autocomplete';
import { ErrorStateMatcher } from '@angular/material/core';
import { MatFormFieldAppearance } from '@angular/material/form-field';
import { SdItemDefDefDirective, SdViewDefDirective } from '@sd-angular/core/forms/directives';
import { SdCustomValidator, SdFormControl, SdSearch, SdSelectionData } from '@sd-angular/core/forms/models';
import { SdSize } from '@sd-angular/core/utilities/models';
import * as i0 from "@angular/core";
declare class SdAutocompleteErrotStateMatcher implements ErrorStateMatcher {
    private formControl;
    constructor(formControl: FormControl);
    isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean;
}
export declare class SdAutocomplete<T = any> implements OnInit, OnDestroy, AfterViewInit {
    #private;
    id: string;
    inputRef: import("@angular/core").Signal<ElementRef<HTMLInputElement> | undefined>;
    autocompleteTrigger: import("@angular/core").Signal<MatAutocompleteTrigger | undefined>;
    sdLabelTemplate: import("@angular/core").Signal<TemplateRef<any> | undefined>;
    sdValueTemplate: import("@angular/core").Signal<TemplateRef<any> | undefined>;
    itemDef: import("@angular/core").Signal<SdItemDefDefDirective | undefined>;
    sdViewDef: import("@angular/core").Signal<SdViewDefDirective | undefined>;
    private ref;
    private formConfig;
    autoIdInput: import("@angular/core").InputSignal<string | null | undefined>;
    autoId: import("@angular/core").Signal<string | undefined>;
    name: import("@angular/core").InputSignal<string>;
    size: import("@angular/core").InputSignal<SdSize>;
    form: import("@angular/core").InputSignal<any>;
    label: import("@angular/core").InputSignal<string | undefined>;
    helperText: import("@angular/core").InputSignal<string | undefined>;
    placeholder: import("@angular/core").InputSignal<string | undefined>;
    valueField: import("@angular/core").InputSignal<string | undefined>;
    displayField: import("@angular/core").InputSignal<string | undefined>;
    disabledField: import("@angular/core").InputSignal<string>;
    limit: import("@angular/core").InputSignal<number>;
    cacheChecksum: import("@angular/core").InputSignal<any>;
    hyperlink: import("@angular/core").InputSignal<string | null | undefined>;
    items: import("@angular/core").InputSignal<SdSearch<T> | T[] | null | undefined>;
    hideInlineError: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
    addable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
    required: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
    disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
    viewed: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
    validator: import("@angular/core").InputSignal<SdCustomValidator | undefined>;
    inlineError: import("@angular/core").InputSignal<string | undefined>;
    appearanceInput: import("@angular/core").InputSignal<MatFormFieldAppearance | undefined>;
    appearance: import("@angular/core").Signal<MatFormFieldAppearance>;
    valueModel: import("@angular/core").ModelSignal<string | number | null | undefined>;
    sdChange: import("@angular/core").OutputEmitterRef<string | number | null>;
    sdSelection: import("@angular/core").OutputEmitterRef<SdSelectionData<any>>;
    sdAdd: EventEmitter<void>;
    loading: import("@angular/core").WritableSignal<boolean>;
    isFocused: boolean;
    isTyping: import("@angular/core").WritableSignal<boolean>;
    inputControl: SdFormControl;
    formControl: SdFormControl;
    matcher: SdAutocompleteErrotStateMatcher;
    filteredItems: import("@angular/core").WritableSignal<any[]>;
    selected: import("@angular/core").WritableSignal<any>;
    display: import("@angular/core").WritableSignal<string>;
    controlPlaceHolder: import("@angular/core").WritableSignal<string>;
    normalizedValue: import("@angular/core").Signal<string | number | null | undefined>;
    constructor();
    ngOnInit(): void;
    ngAfterViewInit(): void;
    ngOnDestroy(): void;
    onSelect: (item: T) => void;
    onFocus: () => void;
    onBlur: () => void;
    onClick: () => void;
    blur: () => void;
    focus: () => void;
    clear: ($event?: any) => void;
    onAdd: ($event: Event) => void;
    reValidate: () => void;
    customInlineErrorValidator(): ValidatorFn;
    static ɵfac: i0.ɵɵFactoryDeclaration<SdAutocomplete<any>, never>;
    static ɵcmp: i0.ɵɵComponentDeclaration<SdAutocomplete<any>, "sd-autocomplete", 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; }; "valueField": { "alias": "valueField"; "required": false; "isSignal": true; }; "displayField": { "alias": "displayField"; "required": false; "isSignal": true; }; "disabledField": { "alias": "disabledField"; "required": false; "isSignal": true; }; "limit": { "alias": "limit"; "required": false; "isSignal": true; }; "cacheChecksum": { "alias": "cacheChecksum"; "required": false; "isSignal": true; }; "hyperlink": { "alias": "hyperlink"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "hideInlineError": { "alias": "hideInlineError"; "required": false; "isSignal": true; }; "addable": { "alias": "addable"; "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; }; "validator": { "alias": "validator"; "required": false; "isSignal": true; }; "inlineError": { "alias": "inlineError"; "required": false; "isSignal": true; }; "appearanceInput": { "alias": "appearance"; "required": false; "isSignal": true; }; "valueModel": { "alias": "model"; "required": false; "isSignal": true; }; }, { "valueModel": "modelChange"; "sdChange": "sdChange"; "sdSelection": "sdSelection"; "sdAdd": "sdAdd"; }, ["sdLabelTemplate", "sdValueTemplate", "itemDef", "sdViewDef"], ["[sdLabel]"], true, never>;
}
export {};
