import { BaseHarnessFilters } from '@angular/cdk/testing'; import { ComponentHarness } from '@angular/cdk/testing'; import { ContentContainerComponentHarness } from '@angular/cdk/testing'; import { HarnessLoader } from '@angular/cdk/testing'; import { HarnessPredicate } from '@angular/cdk/testing'; /** Harness for interacting with a standard Angular Material step in tests. */ export declare class MatStepHarness extends ContentContainerComponentHarness { /** The selector for the host element of a `MatStep` instance. */ static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a `MatStepHarness` that meets * certain criteria. * @param options Options for filtering which steps are considered a match. * @return a `HarnessPredicate` configured with the given options. */ static with(options?: StepHarnessFilters): HarnessPredicate; /** Gets the label of the step. */ getLabel(): Promise; /** Gets the `aria-label` of the step. */ getAriaLabel(): Promise; /** Gets the value of the `aria-labelledby` attribute. */ getAriaLabelledby(): Promise; /** Whether the step is selected. */ isSelected(): Promise; /** Whether the step has been filled out. */ isCompleted(): Promise; /** * Whether the step is currently showing its error state. Note that this doesn't mean that there * are or aren't any invalid form controls inside the step, but that the step is showing its * error-specific styling which depends on there being invalid controls, as well as the * `ErrorStateMatcher` determining that an error should be shown and that the `showErrors` * option was enabled through the `STEPPER_GLOBAL_OPTIONS` injection token. */ hasErrors(): Promise; /** Whether the step is optional. */ isOptional(): Promise; /** * Selects the given step by clicking on the label. The step may not be selected * if the stepper doesn't allow it (e.g. if there are validation errors). */ select(): Promise; protected getRootHarnessLoader(): Promise; /** * Gets the state of the step. Note that we have a `StepState` which we could use to type the * return value, but it's basically the same as `string`, because the type has `| string`. */ private _getIconState; } /** Harness for interacting with a standard Material stepper in tests. */ export declare class MatStepperHarness extends ComponentHarness { /** The selector for the host element of a `MatStepper` instance. */ static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a `MatStepperHarness` that meets * certain criteria. * @param options Options for filtering which stepper instances are considered a match. * @return a `HarnessPredicate` configured with the given options. */ static with(options?: StepperHarnessFilters): HarnessPredicate; /** * Gets the list of steps in the stepper. * @param filter Optionally filters which steps are included. */ getSteps(filter?: StepHarnessFilters): Promise; /** Gets the orientation of the stepper. */ getOrientation(): Promise; /** * Selects a step in this stepper. * @param filter An optional filter to apply to the child steps. The first step matching the * filter will be selected. */ selectStep(filter?: StepHarnessFilters): Promise; } /** Harness for interacting with a standard Angular Material stepper next button in tests. */ export declare class MatStepperNextHarness extends StepperButtonHarness { /** The selector for the host element of a `MatStep` instance. */ static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a `MatStepperNextHarness` that meets * certain criteria. * @param options Options for filtering which steps are considered a match. * @return a `HarnessPredicate` configured with the given options. */ static with(options?: StepperButtonHarnessFilters): HarnessPredicate; } /** Harness for interacting with a standard Angular Material stepper previous button in tests. */ export declare class MatStepperPreviousHarness extends StepperButtonHarness { /** The selector for the host element of a `MatStep` instance. */ static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a `MatStepperPreviousHarness` * that meets certain criteria. * @param options Options for filtering which steps are considered a match. * @return a `HarnessPredicate` configured with the given options. */ static with(options?: StepperButtonHarnessFilters): HarnessPredicate; } /** A set of criteria that can be used to filter a list of `MatStepHarness` instances. */ export declare interface StepHarnessFilters extends BaseHarnessFilters { /** Only find instances whose label matches the given value. */ label?: string | RegExp; /** Only find steps with the given selected state. */ selected?: boolean; /** Only find completed steps. */ completed?: boolean; /** Only find steps that have errors. */ invalid?: boolean; } /** Base class for stepper button harnesses. */ declare abstract class StepperButtonHarness extends ComponentHarness { /** Gets the text of the button. */ getText(): Promise; /** Clicks the button. */ click(): Promise; } /** * A set of criteria that can be used to filter a list of * `MatStepperNextHarness` and `MatStepperPreviousHarness` instances. */ export declare interface StepperButtonHarnessFilters extends BaseHarnessFilters { /** Only find instances whose text matches the given value. */ text?: string | RegExp; } /** A set of criteria that can be used to filter a list of `MatStepperHarness` instances. */ export declare interface StepperHarnessFilters extends BaseHarnessFilters { /** Only find instances whose orientation matches the given value. */ orientation?: StepperOrientation; } /** Possible orientations for a stepper. */ export declare const enum StepperOrientation { HORIZONTAL = 0, VERTICAL = 1 } export { }