import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
import { FormControl, FormGroup, 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, SdLabelDefDirective, SdViewDefDirective } from '@sd-angular/core/forms/directives';
import { ISdFormConfiguration, SdCustomValidator, SdFormControl, SdSearch, SdSelectionData } from '@sd-angular/core/forms/models';
import { SdSize } from '@sd-angular/core/utilities/models';
import { Observable } from 'rxjs';
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;
    private ref;
    private formConfig;
    id: string;
    autoId?: string;
    set _autoId(val: string | undefined | null);
    autocompleteTrigger?: MatAutocompleteTrigger;
    set name(val: string | undefined);
    appearance?: MatFormFieldAppearance;
    loading: boolean;
    inputControl: SdFormControl;
    formControl: SdFormControl;
    matcher: SdAutocompleteErrotStateMatcher;
    size: SdSize;
    set form(val: NgForm | FormGroup | undefined | null);
    label?: string;
    set _label(val: string | undefined);
    helperText?: string;
    set _helperText(val: string | undefined);
    valueField?: string;
    displayField?: string;
    disabledField: string;
    placeholder?: string;
    set items(items: undefined | null | T[] | SdSearch<T>);
    limit: number;
    filteredItems?: Observable<any[]>;
    cacheChecksum: any;
    controlPlaceHolder?: Observable<string>;
    set model(value: undefined | number | string);
    addable: boolean;
    set _addable(addable: boolean | '' | undefined | null);
    itemDef?: SdItemDefDefDirective;
    sdLabelDef?: SdLabelDefDirective;
    modelChange: EventEmitter<any>;
    sdChange: EventEmitter<string | number | null>;
    sdSelection: EventEmitter<SdSelectionData<any>>;
    sdAdd: EventEmitter<any>;
    set disabled(val: boolean | '' | undefined | null);
    viewed: boolean;
    set _viewed(val: boolean | '' | undefined | null);
    hyperlink?: string | null;
    required: boolean;
    set _required(val: boolean | '' | undefined | null);
    set _validator(value: SdCustomValidator | undefined);
    inlineError?: string;
    set _inlineError(val: string);
    hideInlineError: boolean;
    set _hideInlineError(val: boolean | '');
    input?: ElementRef;
    sdViewDef?: SdViewDefDirective;
    isFocused: boolean;
    selected?: Observable<T>;
    display?: Observable<string>;
    isTyping: boolean;
    constructor(ref: ChangeDetectorRef, formConfig: ISdFormConfiguration);
    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>, [null, { optional: true; }]>;
    static ɵcmp: i0.ɵɵComponentDeclaration<SdAutocomplete<any>, "sd-autocomplete", never, { "_autoId": { "alias": "autoId"; "required": false; }; "name": { "alias": "name"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "size": { "alias": "size"; "required": false; }; "form": { "alias": "form"; "required": false; }; "_label": { "alias": "label"; "required": false; }; "_helperText": { "alias": "helperText"; "required": false; }; "valueField": { "alias": "valueField"; "required": false; }; "displayField": { "alias": "displayField"; "required": false; }; "disabledField": { "alias": "disabledField"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "items": { "alias": "items"; "required": false; }; "limit": { "alias": "limit"; "required": false; }; "cacheChecksum": { "alias": "cacheChecksum"; "required": false; }; "model": { "alias": "model"; "required": false; }; "_addable": { "alias": "addable"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "_viewed": { "alias": "viewed"; "required": false; }; "hyperlink": { "alias": "hyperlink"; "required": false; }; "_required": { "alias": "required"; "required": false; }; "_validator": { "alias": "validator"; "required": false; }; "_inlineError": { "alias": "inlineError"; "required": false; }; "_hideInlineError": { "alias": "hideInlineError"; "required": false; }; }, { "modelChange": "modelChange"; "sdChange": "sdChange"; "sdSelection": "sdSelection"; "sdAdd": "sdAdd"; }, ["itemDef", "sdLabelDef", "sdViewDef"], never, true, never>;
}
export {};
