import { OnInit } from '@angular/core';
import { MatSelectChange } from '@angular/material/select';
import { ControlValueAccessorDirective } from '../control-value-accessor.directive';
import * as i0 from "@angular/core";
interface KeyValuePair {
key: string;
value: string;
}
/**
* Multi-select dropdown component for selecting multiple options.
*
* Supports both Reactive Forms and Template-driven forms.
*
* Inputs:
* - `options`: Accepts an array of objects used as the selection list.
* - `displayedLabel`: Property name from the option object to display in the UI (default: `'description'`).
* - `key`: Property name from the option object used as the value (default: `'value'`).
* - `label`: Defines the label text shown above the multi-select field.
* - `placeholder`: Sets the placeholder text when no value is selected.
* - `isReadOnly`: Disables interaction and renders the component in a read-only display mode.
* - `mandatory`: Hides the "optional" label visually. Does not add validation.
* - `required`: Hides the "optional" label and also adds Angular's required validator.
* - `tooltip`: Displays a tooltip beside the label.
* - `loading`: Shows a loading spinner inside the dropdown when set to true.
* - `customErrorMessages`: Custom messages for validation errors.
*
* Emits:
* - The selected value is emitted as an array of objects:
* ```ts
* [{ key: option[key], value: option[displayedLabel] }, ...]
* ```
*
* Example usage:
* ```html
*
*
* ```
*/
export declare class MultiselectComponent extends ControlValueAccessorDirective implements OnInit {
options: any[];
displayedLabel: string;
key: string;
private cdRef;
private destroyRef;
ngOnInit(): void;
selectionChange(event: MatSelectChange): void;
mapKeyValuePairsToKeys(value: KeyValuePair[] | null): string[];
static ɵfac: i0.ɵɵFactoryDeclaration, never>;
static ɵcmp: i0.ɵɵComponentDeclaration, "app-multiselect", never, { "options": { "alias": "options"; "required": false; }; "displayedLabel": { "alias": "displayedLabel"; "required": false; }; "key": { "alias": "key"; "required": false; }; }, {}, never, never, true, never>;
}
export {};