import { ComponentHarness, BaseHarnessFilters, HarnessPredicate } from '@angular/cdk/testing'; /** Harness filters for ComCalendarCellHarness. */ interface ComCalendarCellHarnessFilters extends BaseHarnessFilters { /** Filter by the cell's display text. */ text?: string | RegExp; /** Filter by whether the cell is selected. */ selected?: boolean; /** Filter by whether the cell is disabled. */ disabled?: boolean; } /** Harness filters for ComCalendarHarness. */ type ComCalendarHarnessFilters = BaseHarnessFilters; /** * Harness for interacting with an individual calendar cell in tests. */ declare class ComCalendarCellHarness extends ComponentHarness { static hostSelector: string; private readonly button; /** * Gets a HarnessPredicate for matching calendar cells. * @param options Filter options. */ static with(options?: ComCalendarCellHarnessFilters): HarnessPredicate; /** Gets the cell's display text. */ getText(): Promise; /** Gets the cell button's aria-label. */ getAriaLabel(): Promise; /** Whether the cell is currently selected. */ isSelected(): Promise; /** Whether the cell is disabled. */ isDisabled(): Promise; /** Whether the cell represents today's date. */ isToday(): Promise; /** Clicks the cell to select it. */ select(): Promise; /** Focuses the cell button. */ focus(): Promise; /** Whether the cell button is focused. */ isFocused(): Promise; } /** * Harness for interacting with a ComCalendar in tests. */ declare class ComCalendarHarness extends ComponentHarness { static hostSelector: string; private readonly prevButton; private readonly periodButton; private readonly nextButton; /** * Gets a HarnessPredicate for matching calendars. * @param options Filter options. */ static with(options?: ComCalendarHarnessFilters): HarnessPredicate; /** Gets the period label text (e.g., "January 2024", "2024", "2000 – 2023"). */ getPeriodLabel(): Promise; /** Navigates to the previous period (month, year, or multi-year page). */ goToPreviousPage(): Promise; /** Navigates to the next period (month, year, or multi-year page). */ goToNextPage(): Promise; /** Whether the previous page button is disabled. */ isPreviousDisabled(): Promise; /** Whether the next page button is disabled. */ isNextDisabled(): Promise; /** Clicks the period button to switch to the next higher view (month → year → multi-year). */ switchView(): Promise; /** Gets the current calendar view. */ getCurrentView(): Promise<'month' | 'year' | 'multi-year'>; /** Gets all calendar cells, optionally filtered. */ getCells(filters?: ComCalendarCellHarnessFilters): Promise; /** Selects a cell by its display text. Throws if no matching cell is found. */ selectCell(text: string): Promise; /** Gets all currently selected cells. */ getSelectedCells(): Promise; /** Gets the cell representing today, or null if not visible. */ getTodayCell(): Promise; } export { ComCalendarCellHarness, ComCalendarHarness }; export type { ComCalendarCellHarnessFilters, ComCalendarHarnessFilters };