import { QueryList } from '@angular/core'; import { TsOptgroupComponent } from './optgroup.component'; import { TsOptionComponent } from './option.component'; /** * Determine if all options are selected * * @param options - The list of options * @returns If all are selected */ export declare function allOptionsAreSelected(options: QueryList): boolean; /** * Counts the amount of option group labels that precede the specified option * * @param optionIndex - Index of the option at which to start counting * @param options - Flat list of all of the options * @param optionGroups - Flat list of all of the option groups * @returns The number of labels */ export declare function countGroupLabelsBeforeOption(optionIndex: number, options: QueryList, optionGroups: QueryList): number; /** * Determine the position to scroll a panel in order for an option to be in view * * @param optionIndex - Index of the option to be scrolled into view * @param optionHeight - Height of the options * @param currentScrollPosition - Current scroll position of the panel * @param panelHeight - Height of the panel * @returns The scroll position */ export declare function getOptionScrollPosition(optionIndex: number, optionHeight: number, currentScrollPosition: number, panelHeight: number): number; /** * Determine if one or more options are selected but not all * * @param options - The list of options * @returns If some are selected */ export declare function someOptionsAreSelected(options: QueryList): boolean; /** * Toggle the selected state of all options * * If at least one option is selected this will deselect all selected options. * If no options are selected this will select all options. * * @param options - The list of options */ export declare function toggleAllOptions(options: QueryList): void;