/** * @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 { HarnessPredicate } from '@angular/cdk/testing'; import { MatFormFieldControlHarness } from '@angular/material/form-field/testing/control'; import { InputHarnessFilters } from './input-harness-filters'; /** Harness for interacting with a standard Material inputs in tests. */ export declare class MatInputHarness extends MatFormFieldControlHarness { static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a `MatInputHarness` that meets * certain criteria. * @param options Options for filtering which input instances are considered a match. * @return a `HarnessPredicate` configured with the given options. */ static with(options?: InputHarnessFilters): HarnessPredicate; /** Whether the input is disabled. */ isDisabled(): Promise; /** Whether the input is required. */ isRequired(): Promise; /** Whether the input is readonly. */ isReadonly(): Promise; /** Gets the value of the input. */ getValue(): Promise; /** Gets the name of the input. */ getName(): Promise; /** * Gets the type of the input. Returns "textarea" if the input is * a textarea. */ getType(): Promise; /** Gets the placeholder of the input. */ getPlaceholder(): Promise; /** Gets the id of the input. */ getId(): Promise; /** * Focuses the input and returns a promise that indicates when the * action is complete. */ focus(): Promise; /** * Blurs the input and returns a promise that indicates when the * action is complete. */ blur(): Promise; /** Whether the input is focused. */ isFocused(): Promise; /** * Sets the value of the input. The value will be set by simulating * keypresses that correspond to the given value. */ setValue(newValue: string): Promise; }