import { ElementRef, EventEmitter, TemplateRef } from '@angular/core'; import { MatCheckboxChange } from '@angular/material/checkbox'; import { CanColor } from '@angular/material/core'; import { MtnaPopoverConfig } from '@mtna/lib-ui/popover'; import { FacetCount, Filter, SearchField, SearchFieldValue } from '@mtna/search-manager-ui'; import { GetSearchFieldValuesPipe } from './pipes'; import * as i0 from "@angular/core"; export declare const _FacetFilterMixinBase: import("@angular/material/core/common-behaviors/constructor").Constructor & import("@angular/material/core/common-behaviors/constructor").AbstractConstructor & { new (_elementRef: ElementRef): { _elementRef: ElementRef; }; }; export declare class MtnaFacetFilterComponent extends _FacetFilterMixinBase implements CanColor { protected el: ElementRef; private getSearchFieldValuesPipe; static iteration: number; /** Counts for facets */ count: FacetCount | null | undefined; /** How many options can be displayed before using dropdown */ maxDisplayed: number; /** Popover configuration to describe the control */ popover: MtnaPopoverConfig | null | undefined; /** Required `SearchFied` that describes the filter */ searchField: SearchField | null | undefined; /** The selected filter's field names */ selected: Array; /** Label for filter-select */ selectLabel: string; /** Event emitted when the filter's selection changes */ filter: EventEmitter; /** Reference for custom header */ customHeaderRef: TemplateRef | undefined; /** Reference for custom filter option */ customOptionRef: TemplateRef | undefined; _iterationId: string; _clearText: string; _clearAriaLabel: string; _showText: string; _showAriaLabel: string; constructor(el: ElementRef, getSearchFieldValuesPipe: GetSearchFieldValuesPipe); /** * Removes or adds SearchFieldValue object to selectedFilters array. * @param ev - checkbox change * @param facet - object storing key, value and display name */ changeSelection(ev: MatCheckboxChange, facet: SearchFieldValue): void; /** Clears all selected filters */ clearAll(): void; /** * Emits a filter event. * @param field filter's field property * @param values filters values */ handleFilterChange(field: string, values: SearchFieldValue[]): void; /** Selects all filters. */ selectAll(): void; /** * Selects only the facet that is passed to method. * @param facet - facet to be selected */ selectOnly(facet: SearchFieldValue): void; _trackByKey(_: number, facet: SearchFieldValue): string; /** * Emits a Filter after any change to selection. */ private _emitFilterEvent; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }