/** * @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 { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing'; import { SliderHarnessFilters } from './slider-harness-filters'; /** Harness for interacting with a standard mat-slider in tests. */ export declare class MatSliderHarness extends ComponentHarness { /** The selector for the host element of a `MatSlider` instance. */ static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a `MatSliderHarness` that meets * certain criteria. * @param options Options for filtering which slider instances are considered a match. * @return a `HarnessPredicate` configured with the given options. */ static with(options?: SliderHarnessFilters): HarnessPredicate; private _textLabel; private _wrapper; /** Gets the slider's id. */ getId(): Promise; /** * Gets the current display value of the slider. Returns a null promise if the thumb label is * disabled. */ getDisplayValue(): Promise; /** Gets the current percentage value of the slider. */ getPercentage(): Promise; /** Gets the current value of the slider. */ getValue(): Promise; /** Gets the maximum value of the slider. */ getMaxValue(): Promise; /** Gets the minimum value of the slider. */ getMinValue(): Promise; /** Whether the slider is disabled. */ isDisabled(): Promise; /** Gets the orientation of the slider. */ getOrientation(): Promise<'horizontal' | 'vertical'>; /** * Sets the value of the slider by clicking on the slider track. * * Note that in rare cases the value cannot be set to the exact specified value. This * can happen if not every value of the slider maps to a single pixel that could be * clicked using mouse interaction. In such cases consider using the keyboard to * select the given value or expand the slider's size for a better user experience. */ setValue(value: number): Promise; /** Focuses the slider. */ focus(): Promise; /** Blurs the slider. */ blur(): Promise; /** Whether the slider is focused. */ isFocused(): Promise; /** Calculates the percentage of the given value. */ private _calculatePercentage; }