import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from '@angular/cdk/testing'; import { NxFormfieldControlHarness } from '@aposin/ng-aquila/formfield/testing/control'; interface NxDropdownItemFilters extends BaseHarnessFilters { text?: string | RegExp; isSelected?: boolean; } declare class NxDropdownItemHarness extends ComponentHarness { static hostSelector: string; static with(options?: NxDropdownItemFilters): HarnessPredicate; /** Click the option */ click(): Promise; /** Get the option's label text */ getText(): Promise; /** Get whether the option is disabled */ isDisabled(): Promise; /** Get whether the option is selected */ isSelected(): Promise; /** Get whether the option is active */ isActive(): Promise; /** Get whether the option is in multiselect mode */ isMultiple(): Promise; } interface NxDropdownGroupHarnessFilters extends BaseHarnessFilters { label?: string | RegExp; } declare class NxDropdownGroupHarness extends ComponentHarness { static hostSelector: string; static with(options?: NxDropdownGroupHarnessFilters): HarnessPredicate; private _label; getLabel(): Promise; getItems(filter?: NxDropdownItemFilters): Promise; } interface NxDropdownFilters extends BaseHarnessFilters { /** Text is either the placeholder, or the currently selected value */ valueText?: string | RegExp; readonly?: boolean; disabled?: boolean; } declare class NxDropdownHarness extends NxFormfieldControlHarness { static hostSelector: string; static with(options?: NxDropdownFilters): HarnessPredicate; private documentRootLocator; private _panelBodyQuery; private _valueText; private _trigger; private _filter; /** Get the current value text when dropdown is not empty */ getValueText(): Promise; isDisabled(): Promise; isReadonly(): Promise; focus(): Promise; blur(): Promise; isFocused(): Promise; isEmpty(): Promise; isOpen(): Promise; open(): Promise; /** Close the dropdown if it is opened */ close(): Promise; /** Get items inside the dropdown panel. Only returns items when the panel body is opened */ getItems(filter?: Omit): Promise; getGroups(filter?: Omit): Promise; /** Open the dropdown and click the first item matching the filter */ clickItem(filter?: NxDropdownItemFilters): Promise; /** Get whether the dropdown has a filter input. The dropdown panel must be open */ hasFilter(): Promise; /** Get the current filter value. The dropdown panel must be open */ getFilterValue(): Promise; /** Set the filter value. The dropdown panel must be open */ setFilterValue(value: string): Promise; } export { NxDropdownHarness, NxDropdownItemHarness }; export type { NxDropdownFilters, NxDropdownItemFilters };