import { ComponentHarness, BaseHarnessFilters, HarnessPredicate } from '@angular/cdk/testing'; /** Harness filters for ComRadioButtonHarness. */ interface ComRadioButtonHarnessFilters extends BaseHarnessFilters { /** Filter by the radio button's label text. */ label?: string | RegExp; /** Filter by the radio button's value. */ value?: string | RegExp; /** Filter by whether the radio button is disabled. */ disabled?: boolean; /** Filter by whether the radio button is checked. */ checked?: boolean; } /** Harness filters for ComRadioGroupHarness. */ interface ComRadioGroupHarnessFilters extends BaseHarnessFilters { /** Filter by the radio group's name. */ name?: string | RegExp; /** Filter by whether the radio group is disabled. */ disabled?: boolean; } /** * Harness for interacting with a radio button in tests. */ declare class ComRadioButtonHarness extends ComponentHarness { static hostSelector: string; private readonly label; private readonly input; private readonly labelText; /** * Gets a HarnessPredicate for matching radio buttons. * @param options Filter options. */ static with(options?: ComRadioButtonHarnessFilters): HarnessPredicate; /** Whether the radio button is checked. */ isChecked(): Promise; /** Whether the radio button is disabled. */ isDisabled(): Promise; /** Gets the radio button's label text. */ getLabelText(): Promise; /** Gets the radio button's value. */ getValue(): Promise; /** Checks the radio button if it is not already checked. */ check(): Promise; /** Focuses the radio button's input. */ focus(): Promise; /** Blurs the radio button's input. */ blur(): Promise; /** Whether the radio button's input is focused. */ isFocused(): Promise; } /** * Harness for interacting with a radio group in tests. */ declare class ComRadioGroupHarness extends ComponentHarness { static hostSelector: string; private readonly radioGroup; private readonly errorMessage; /** * Gets a HarnessPredicate for matching radio groups. * @param options Filter options. */ static with(options?: ComRadioGroupHarnessFilters): HarnessPredicate; /** Gets all radio buttons in the group, optionally filtered. */ getRadioButtons(filters?: ComRadioButtonHarnessFilters): Promise; /** Gets the checked radio button, or null if none is checked. */ getCheckedRadioButton(): Promise; /** Gets the value of the checked radio button, or null if none is checked. */ getCheckedValue(): Promise; /** Gets the name attribute of the radio group from the first radio input. */ getName(): Promise; /** Whether the radio group is disabled. */ isDisabled(): Promise; /** Whether the radio group is required. */ isRequired(): Promise; /** Whether the radio group has an error state. */ hasError(): Promise; /** Gets the error message text, or null if no error is displayed. */ getErrorMessage(): Promise; /** Gets the aria-label of the radio group. */ getAriaLabel(): Promise; /** Checks a radio button matching the given filter. */ checkRadioButton(filter?: ComRadioButtonHarnessFilters): Promise; } export { ComRadioButtonHarness, ComRadioGroupHarness }; export type { ComRadioButtonHarnessFilters, ComRadioGroupHarnessFilters };