import { BaseHarnessFilters, ComponentHarness, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing'; /** Possible positions of a slider thumb. */ declare enum ThumbPosition { START = 0, END = 1 } /** A set of criteria that can be used to filter a list of `MatSliderHarness` instances. */ interface SliderHarnessFilters extends BaseHarnessFilters { /** Filters out only range/non-range sliders. */ isRange?: boolean; /** Only find instances which match the given disabled state. */ disabled?: boolean; } /** A set of criteria that can be used to filter a list of `MatSliderThumbHarness` instances. */ interface SliderThumbHarnessFilters extends BaseHarnessFilters { /** Filters out slider thumbs with a particular position. */ position?: ThumbPosition; } /** Harness for interacting with a thumb inside of a Material slider in tests. */ declare class MatSliderThumbHarness extends ComponentHarness { static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a slider thumb with specific attributes. * @param options Options for filtering which thumb instances are considered a match. * @return a `HarnessPredicate` configured with the given options. */ static with(this: ComponentHarnessConstructor, options?: SliderThumbHarnessFilters): HarnessPredicate; /** Gets the position of the thumb inside the slider. */ getPosition(): Promise; /** Gets the value of the thumb. */ getValue(): Promise; /** Sets the value of the thumb. */ setValue(newValue: number): Promise; /** Gets the current percentage value of the slider. */ getPercentage(): Promise; /** Gets the maximum value of the thumb. */ getMaxValue(): Promise; /** Gets the minimum value of the thumb. */ getMinValue(): Promise; /** Gets the text representation of the slider's value. */ getDisplayValue(): Promise; /** Whether the thumb is disabled. */ isDisabled(): Promise; /** Gets the name of the thumb. */ getName(): Promise; /** Gets the id of the thumb. */ getId(): Promise; /** * Focuses the thumb and returns a promise that indicates when the * action is complete. */ focus(): Promise; /** * Blurs the thumb and returns a promise that indicates when the * action is complete. */ blur(): Promise; /** Whether the thumb is focused. */ isFocused(): Promise; } /** Harness for interacting with a MDC mat-slider in tests. */ declare class MatSliderHarness extends ComponentHarness { static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a slider with specific attributes. * @param options Options for filtering which input instances are considered a match. * @return a `HarnessPredicate` configured with the given options. */ static with(this: ComponentHarnessConstructor, options?: SliderHarnessFilters): HarnessPredicate; /** Gets the start thumb of the slider (only applicable for range sliders). */ getStartThumb(): Promise; /** Gets the thumb (for single point sliders), or the end thumb (for range sliders). */ getEndThumb(): Promise; /** Gets whether the slider is a range slider. */ isRange(): Promise; /** Gets whether the slider is disabled. */ isDisabled(): Promise; /** Gets the value step increments of the slider. */ getStep(): Promise; /** Gets the maximum value of the slider. */ getMaxValue(): Promise; /** Gets the minimum value of the slider. */ getMinValue(): Promise; } export { MatSliderHarness, MatSliderThumbHarness, ThumbPosition }; export type { SliderHarnessFilters, SliderThumbHarnessFilters };