/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { ContentContainerComponentHarness, HarnessPredicate } from '@angular/cdk/testing'; import { ButtonHarnessFilters } from './button-harness-filters'; /** Harness for interacting with a standard mat-button in tests. */ export declare class MatButtonHarness extends ContentContainerComponentHarness { /** The selector for the host element of a `MatButton` instance. */ static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a `MatButtonHarness` that meets * certain criteria. * @param options Options for filtering which button instances are considered a match. * @return a `HarnessPredicate` configured with the given options. */ static with(options?: ButtonHarnessFilters): HarnessPredicate; /** * Clicks the button at the given position relative to its top-left. * @param relativeX The relative x position of the click. * @param relativeY The relative y position of the click. */ click(relativeX: number, relativeY: number): Promise; /** Clicks the button at its center. */ click(location: 'center'): Promise; /** Clicks the button. */ click(): Promise; /** Whether the button is disabled. */ isDisabled(): Promise; /** Gets the button's label text. */ getText(): Promise; /** Focuses the button. */ focus(): Promise; /** Blurs the button. */ blur(): Promise; /** Whether the button is focused. */ isFocused(): Promise; }