import * as _angular_cdk_testing from '@angular/cdk/testing'; import { BaseHarnessFilters, ComponentHarness, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing'; /** A set of criteria that can be used to filter a list of `MatSlideToggleHarness` instances. */ interface SlideToggleHarnessFilters extends BaseHarnessFilters { /** Only find instances whose label matches the given value. */ label?: string | RegExp; /** Only find instances whose name is the given value. */ name?: string; /** Only find instances with the given checked value. */ checked?: boolean; /** Only find instances where the disabled state matches the given value. */ disabled?: boolean; } /** Harness for interacting with a mat-slide-toggle in tests. */ declare class MatSlideToggleHarness extends ComponentHarness { private _label; _nativeElement: () => Promise<_angular_cdk_testing.TestElement>; static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a slide-toggle w/ specific attributes. * @param options Options for narrowing the search: * - `selector` finds a slide-toggle whose host element matches the given selector. * - `label` finds a slide-toggle with specific label text. * @return a `HarnessPredicate` configured with the given options. */ static with(this: ComponentHarnessConstructor, options?: SlideToggleHarnessFilters): HarnessPredicate; /** Toggle the checked state of the slide-toggle. */ toggle(): Promise; /** Whether the slide-toggle is checked. */ isChecked(): Promise; /** Whether the slide-toggle is disabled. */ isDisabled(): Promise; /** Whether the slide-toggle is required. */ isRequired(): Promise; /** Whether the slide-toggle is valid. */ isValid(): Promise; /** Gets the slide-toggle's name. */ getName(): Promise; /** Gets the slide-toggle's aria-label. */ getAriaLabel(): Promise; /** Gets the slide-toggle's aria-labelledby. */ getAriaLabelledby(): Promise; /** Gets the slide-toggle's label text. */ getLabelText(): Promise; /** Focuses the slide-toggle. */ focus(): Promise; /** Blurs the slide-toggle. */ blur(): Promise; /** Whether the slide-toggle is focused. */ isFocused(): Promise; /** * Puts the slide-toggle in a checked state by toggling it if it is currently unchecked, or doing * nothing if it is already checked. */ check(): Promise; /** * Puts the slide-toggle in an unchecked state by toggling it if it is currently checked, or doing * nothing if it is already unchecked. */ uncheck(): Promise; } export { MatSlideToggleHarness }; export type { SlideToggleHarnessFilters };