import { ComponentHarness, BaseHarnessFilters, HarnessPredicate } from '@angular/cdk/testing'; /** Harness filters for ComSwitchHarness. */ interface ComSwitchHarnessFilters extends BaseHarnessFilters { /** Filter by the switch's label text. */ label?: string | RegExp; /** Filter by whether the switch is disabled. */ disabled?: boolean; /** Filter by whether the switch is checked. */ checked?: boolean; } /** * Harness for interacting with a ComSwitch in tests. */ declare class ComSwitchHarness extends ComponentHarness { static hostSelector: string; private readonly label; private readonly input; private readonly labelText; /** * Gets a HarnessPredicate for matching switches. * @param options Filter options. */ static with(options?: ComSwitchHarnessFilters): HarnessPredicate; /** Whether the switch is currently checked. */ isChecked(): Promise; /** Whether the switch is disabled. */ isDisabled(): Promise; /** Whether the switch is required. */ isRequired(): Promise; /** Gets the switch's label text. */ getLabelText(): Promise; /** Gets the switch's name attribute. */ getName(): Promise; /** Gets the switch's aria-label attribute. */ getAriaLabel(): Promise; /** Toggles the switch by clicking its label. */ toggle(): Promise; /** Checks the switch if it is not already checked. */ check(): Promise; /** Unchecks the switch if it is currently checked. */ uncheck(): Promise; /** Focuses the switch's input element. */ focus(): Promise; /** Blurs the switch's input element. */ blur(): Promise; /** Whether the switch's input element is focused. */ isFocused(): Promise; } export { ComSwitchHarness }; export type { ComSwitchHarnessFilters };