import { ComponentHarness, BaseHarnessFilters, HarnessPredicate, TestElement } from '@angular/cdk/testing'; /** Harness filters for ComDatepickerHarness. */ interface ComDatepickerHarnessFilters extends BaseHarnessFilters { /** Filter by the datepicker's placeholder text. */ placeholder?: string | RegExp; /** Filter by whether the datepicker is disabled. */ disabled?: boolean; /** Filter by whether the datepicker panel is open. */ open?: boolean; } /** * Harness for interacting with a ComDatepicker in tests. */ declare class ComDatepickerHarness extends ComponentHarness { static hostSelector: string; private readonly triggerGroup; private readonly input; private readonly clearButton; private readonly calendarButton; /** * Gets a HarnessPredicate for matching datepickers. * @param options Filter options. */ static with(options?: ComDatepickerHarnessFilters): HarnessPredicate; /** Whether the datepicker panel is currently open. */ isOpen(): Promise; /** Opens the datepicker panel if it is closed. */ open(): Promise; /** Closes the datepicker panel if it is open. */ close(): Promise; /** Whether the datepicker is disabled. */ isDisabled(): Promise; /** Whether the datepicker input has the required attribute. */ isRequired(): Promise; /** Whether the datepicker input is in an invalid state. */ isInvalid(): Promise; /** Gets the current value displayed in the input. */ getInputValue(): Promise; /** Sets the input value by clearing and typing the given text. */ setInputValue(text: string): Promise; /** Gets the placeholder text of the input. */ getPlaceholder(): Promise; /** Whether the datepicker currently has a value (clear button is visible). */ hasValue(): Promise; /** Clears the current value by clicking the clear button. Throws if no value is set. */ clear(): Promise; /** Gets the calendar panel element from the overlay. The datepicker must be open. */ getCalendarPanel(): Promise; /** Selects a day by its visible number. Opens the panel if closed. */ selectDate(day: number): Promise; /** Focuses the datepicker input. */ focus(): Promise; /** Blurs the datepicker input. */ blur(): Promise; /** Whether the datepicker input is currently focused. */ isFocused(): Promise; } export { ComDatepickerHarness }; export type { ComDatepickerHarnessFilters };