import { DebugElement } from '@angular/core'; import { ComponentFixture } from '@angular/core/testing'; import { TsOptgroupComponent, TsOptionComponent } from '@terminus/ui/option'; import { TsSelectionListComponent } from '@terminus/ui/selection-list'; /** * Get the DebugElement for a {@link TsSelectionListComponent} * * @param fixture - The component fixture * @param index - The index of the desired * @returns The DebugElement */ export declare function getSelectionListDebugElement(fixture: ComponentFixture, index?: number): DebugElement; /** * Get the input element for a {@link TsSelectionListComponent} * * @param fixture - The component fixture * @param index - The index of the desired TsSelectionListComponent * @returns The input element */ export declare function getSelectionListInput(fixture: ComponentFixture, index?: number): HTMLInputElement; /** * Get an array of all DebugElements for {@link TsSelectionListComponent} * * @param fixture - The component fixture * @returns An array of DebugElements */ export declare function getAllSelectionListDebugElements(fixture: ComponentFixture): DebugElement[]; /** * Get an array of all component instances for {@link TsSelectionListComponent} * * NOTE: Importing {@link TsSelectionListComponent} into this file was causing ng-packagr build to fail. Casting to any for now. * * @param fixture - The component fixture * @returns An array of TsSelectionListComponent */ export declare const getAllSelectionListInstances: (fixture: ComponentFixture) => TsSelectionListComponent[]; /** * Get a component instances for {@link TsSelectionListComponent} * * NOTE: Importing TsSelectionListComponent into this file was causing ng-packagr build to fail. Casting to any for now. * * @param fixture - The component fixture * @param index - The index of the desired TsSelectionListComponent * @returns The instance */ export declare function getSelectionListInstance(fixture: ComponentFixture, index?: number): TsSelectionListComponent; /** * Get the element for a {@link TsSelectionListComponent} * * @param fixture - The component fixture * @param index - The index of the desired TsSelectionListComponent * @returns The element */ export declare function getSelectionListElement(fixture: ComponentFixture, index?: number): HTMLElement; /** * Get the trigger element for a {@link TsSelectionListComponent} * * @param fixture - The component fixture * @param index - The index of the desired TsSelectionListComponent * @returns The element */ export declare function getSelectionListTriggerElement(fixture: ComponentFixture, index?: number): HTMLElement; /** * Get all TsOptionComponent instances for a {@link TsSelectionListComponent} * * @param fixture - The component fixture * @param index - The index of the desired TsSelectionListComponent * @returns An array of TsOptionComponent */ export declare function getAllOptionInstances(fixture: ComponentFixture, index?: number): TsOptionComponent[]; /** * Get a specific TsOptionComponent instance for a {@link TsSelectionListComponent} * * @param fixture - The component fixture * @param selectIndex - The index of the desired TsSelectionListComponent * @param optionIndex - The index of the desired TsOptionComponent * @returns A TsOptionComponent */ export declare function getOptionInstance(fixture: ComponentFixture, selectIndex?: number, optionIndex?: number): TsOptionComponent; /** * Get the element of a TsOptionComponent instance for a {@link TsSelectionListComponent} * * @param fixture - The component fixture * @param selectIndex - The index of the desired TsSelectionListComponent * @param optionIndex - The index of the desired TsOptionComponent * @returns The TsOptionComponent element */ export declare function getOptionElement(fixture: ComponentFixture, selectIndex?: number, optionIndex?: number): HTMLElement; /** * Get an array of all {@link TsOptgroupComponent}s * * TODO: Deprecate and move to TsOption test helpers file * * @param fixture - The component fixture * @param index - The index of the desired TsSelectionListComponent * @returns An array of TsOptionComponent */ export declare function getAllOptgroups(fixture: ComponentFixture, index?: number): TsOptgroupComponent[]; /** * Get a specific {@link TsOptgroupComponent} * * TODO: Deprecate and move to TsOption test helpers file * * @param fixture - The component fixture * @param selectIndex - The index of the desired TsSelectionListComponent * @param groupIndex - The index of the desired TsOptgroupComponent * @returns A TsOptgroupComponent */ export declare function getOptgroup(fixture: ComponentFixture, selectIndex?: number, groupIndex?: number): TsOptgroupComponent; /** * Get the element for a {@link TsOptgroupComponent} * * TODO: Deprecate and move to TsOption test helpers file * * @param fixture - The component fixture * @param selectIndex - The index of the desired TsSelectionListComponent * @param groupIndex - The index of the desired TsOptgroupComponent * @returns The optgroup element */ export declare function getOptgroupElement(fixture: ComponentFixture, selectIndex?: number, groupIndex?: number): HTMLElement; /** * Open the panel * * @param fixture - The component fixture * @param index - The index of the desired TsSelectionListComponent * @returns The whenStable promise */ export declare function openSelectionList(fixture: ComponentFixture, index?: number): Promise; /** * Select an option * * @param fixture - The component fixture * @param optionText - The text to find the option by * @param selectIndex - The index of the desired TsSelectComponent * @returns The whenStable promise */ export declare function selectOption(fixture: ComponentFixture, optionText: string, selectIndex?: number): Promise;