/** * @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 { DialogRole } from '@angular/material/dialog'; import { DialogHarnessFilters } from './dialog-harness-filters'; /** Harness for interacting with a standard `MatDialog` in tests. */ export declare class MatDialogHarness extends ContentContainerComponentHarness { /** The selector for the host element of a `MatDialog` instance. */ static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a `MatDialogHarness` that meets * certain criteria. * @param options Options for filtering which dialog instances are considered a match. * @return a `HarnessPredicate` configured with the given options. */ static with(options?: DialogHarnessFilters): HarnessPredicate; /** Gets the id of the dialog. */ getId(): Promise; /** Gets the role of the dialog. */ getRole(): Promise; /** Gets the value of the dialog's "aria-label" attribute. */ getAriaLabel(): Promise; /** Gets the value of the dialog's "aria-labelledby" attribute. */ getAriaLabelledby(): Promise; /** Gets the value of the dialog's "aria-describedby" attribute. */ getAriaDescribedby(): Promise; /** * Closes the dialog by pressing escape. * * Note: this method does nothing if `disableClose` has been set to `true` for the dialog. */ close(): Promise; }