/** * Controller for managing the selected items. * * @private * @class SelectedItemsController */ export declare class SelectedItemsController { /** * The set holding the currently selected item values. */ selectedItems: Set; /** * The maximum number of items that can be selected simultaneously. */ maxSelectionsCount: number; /** * Creates a new SelectedItemsController. * * @param {Array<*>|undefined} selectedItems Array of selected items. */ constructor(selectedItems?: unknown[]); /** * Sets the maximum number of selections. */ setMaxSelectionCount(maxSelectionsCount: number): void; /** * Adds selected values (single or array) to the set. * * @param {string|object|Array} items Items to add. */ add(items: unknown | unknown[]): void; /** * Removes a selected value from the set. * * @param {string|object} item Item to remove. * @returns {boolean} True if the item was removed, false otherwise. */ remove(item: unknown): boolean; /** * Checks if a value is in the set. * * @param {*} value Value to check. * @returns {boolean} */ has(value: unknown): boolean; /** * Clears the set. */ clear(): void; /** * Gets the number of selected items. * * @returns {number} */ getSize(): number; /** * Gets the elements of the set. * * @returns {Array<*>} */ getItemsArray(): unknown[]; }