import { BooleanInput } from '@angular/cdk/coercion'; import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core'; import { ControlValueAccessor, NgModel } from '@angular/forms'; import { CanColor } from '@angular/material/core'; import { Constructor } from '@mtna/common'; import { Subject } from 'rxjs'; import * as i0 from "@angular/core"; declare class SearchBoxBase { _elementRef: ElementRef; constructor(_elementRef: ElementRef); } declare const _SearchBoxMixinBase: Constructor & typeof SearchBoxBase; /** * A basic search box component */ export declare class MtnaSearchBoxComponent extends _SearchBoxMixinBase implements CanColor, ControlValueAccessor, OnDestroy, OnInit { private cdr; static ngAcceptInputType_disabled: BooleanInput; static ngAcceptInputType_enableAutoComplete: BooleanInput; static ngAcceptInputType_placeholderText: string | null | undefined; static ngAcceptInputType_searchBoxAriaLabel: string | null | undefined; static ngAcceptInputType_squareDisplay: BooleanInput; /** Sugggested search terms, required when enableAutoComplete is true */ autoCompleteOptions: string[]; /** Aria label for the 'clear button' element. Defaults to 'clear search'. */ clearButtonAriaLabel: string; /** Automatically emit the 'search' output after a specified time when user stops typing */ debounce?: number; /** Whether the search box is disabled, defaults to false */ get disabled(): boolean; set disabled(disabled: boolean); private _disabled; /** Whether autocomplete suggestions will be available when typing, defaults to false. */ get enableAutoComplete(): boolean; set enableAutoComplete(enableAutoComplete: boolean); private _enableAutoComplete; /** Placeholder for input field. Defaults to 'Search' */ get placeholderText(): string; set placeholderText(text: string); private _placeholderText; /** Aria label for the `` element that acts as the search box. Defaults to 'Search Box' */ get searchBoxAriaLabel(): string; set searchBoxAriaLabel(label: string); private _searchBoxAriaLabel; /** Aria label for the 'search button' element. Defaults to 'search'. */ searchButtonAriaLabel: string; /** Whether to show the search box as square instead of rounded. Defaults to false (round searchbox). */ get squareDisplay(): boolean; set squareDisplay(value: boolean); private _squareDisplay; /** Outputs the users search text. Emits on Enter key if no debounce input provided */ search: EventEmitter; input: NgModel; filteredOptions?: Subject; private innerValue; private onTouchedCallback; private onChangeCallback; private textChangeSub?; get value(): string | null; set value(v: string | null); constructor(cdr: ChangeDetectorRef, elementRef: ElementRef); handleClear(): void; handleSearch(event?: Event): void; ngOnDestroy(): void; ngOnInit(): void; onBlur(): void; registerOnChange(fn: (value: unknown) => void): void; registerOnTouched(fn: () => void): void; writeValue(value: string | undefined): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export {};