import { Field } from './field'; export declare class ChoiceListField extends Field { /** * Adds a new value to the choice list by selecting it from the dropdown. * @param value The value to add (must match exactly). */ addNewValue(value: string): void; /** * Asserts that the currently selected value in the choice list matches the given value exactly. * @param value The expected selected value (exact match). */ assertSelected(value: string): void; /** * Selects one or more values in a multi-select choice list and closes the dropdown. * Throws an error if used on a single-value choice list. * @param values The exact values to select. */ selectValues(values: string[]): void; /** * Selects a value in a single-value choice list and closes the dropdown. * Throws an error if used on a multi-value choice list. * @param value The exact value to select. */ selectValue(value: string): void; /** * Opens the dropdown, asserts that all currently selected values in a multi-select choice list match the provided values exactly and closes the dropdown. * The number and content of selected values must match exactly. * Throws an error if used on a single-value choice list. * @param values The exact set of values expected to be selected. */ shouldHaveSelectedValues(values: string[]): void; /** * Opens the dropdown, asserts that the currently selected value in a single-value choice list matches the provided value exactly and closes the dropdown. * Throws an error if used on a multi-value choice list. * @param value The exact value expected to be selected. */ shouldHaveSelectedValue(value: string): void; /** * Opens the dropdown, asserts that each given option value displays the expected label and closes the dropdown. * @param options Expected displayed label per option value. */ shouldHaveOptionLabels(options: Record): void; /** * Opens the dropdown, asserts that the available values in the choice list match the provided list exactly (order and content) and closes the dropdown. * Opens the dropdown to check and closes it after. * @param values The exact set of values expected to be available. */ shouldHaveValues(values: string[]): void; private openDropdown; private closeDropdown; }