/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { EventEmitter } from "@angular/core"; import { SelectionMode } from "./selection-mode"; import * as i0 from "@angular/core"; /** * Defines the event that fires when you make a new selection in the ListBox component. * */ export interface ListBoxSelectionEvent { /** * The indices of items that were selected with the last selection operation. * Returns `null` if no items were selected. */ selectedIndices: number[] | null; /** * The indices of items that were deselected with the last selection operation. * Returns `null` if no items were deselected. */ deselectedIndices: number[] | null; } /** * @hidden */ export declare class ListBoxSelectionService { selectedIndices: number[]; selectionMode: SelectionMode; lastSelectedOrUnselectedIndex: number | null; rangeSelectionTargetIndex: number | null; rangeSelectionAnchorIndex: number | null; isItemDisabled: (index: number) => boolean; onSelect: EventEmitter; select(index: number, ctrlKey?: boolean, shiftKey?: boolean): void; selectRange(targetIndex: number): void; setSelectedIndices(indices: number[]): void; addToSelectedIndices(index: number): void; selectAll(totalItems: number): void; areAllSelected(totalItems: number): boolean; isSelected(index: number): boolean; clearSelection(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }