import { ComponentHarness, BaseHarnessFilters, HarnessPredicate } from '@angular/cdk/testing'; /** Harness filters for ComPopoverContentHarness. */ type ComPopoverContentHarnessFilters = BaseHarnessFilters; /** Harness filters for ComPopoverTriggerHarness. */ interface ComPopoverTriggerHarnessFilters extends BaseHarnessFilters { /** Filter by the trigger element's text. */ text?: string | RegExp; } /** * Harness for interacting with popover content in tests. * This harness targets the `com-popover-content` element rendered in the overlay. */ declare class ComPopoverContentHarness extends ComponentHarness { static hostSelector: string; private readonly dialogPanel; /** * Gets a HarnessPredicate for matching popover content. * @param options Filter options. */ static with(options?: ComPopoverContentHarnessFilters): HarnessPredicate; /** Gets the popover dialog panel's aria-label. */ getAriaLabel(): Promise; /** Gets the text content of the popover dialog panel. */ getText(): Promise; /** Gets the `data-side` attribute from the popover wrapper. */ getSide(): Promise; /** Gets the `data-state` attribute from the popover wrapper. */ getState(): Promise; } /** * Harness for interacting with a popover trigger in tests. */ declare class ComPopoverTriggerHarness extends ComponentHarness { static hostSelector: string; private readonly documentRootLocator; /** * Gets a HarnessPredicate for matching popover triggers. * @param options Filter options. */ static with(options?: ComPopoverTriggerHarnessFilters): HarnessPredicate; /** Gets the trigger element's text. */ getText(): Promise; /** Whether the popover is currently open. */ isOpen(): Promise; /** Opens the popover if it's closed. */ open(): Promise; /** Closes the popover if it's open. */ close(): Promise; /** Toggles the popover open/close state by clicking the trigger. */ toggle(): Promise; /** Gets the popover content harness, or null if the popover is closed. */ getPopoverContent(): Promise; /** Focuses the trigger element. */ focus(): Promise; /** Blurs the trigger element. */ blur(): Promise; /** Whether the trigger element is focused. */ isFocused(): Promise; } export { ComPopoverContentHarness, ComPopoverTriggerHarness }; export type { ComPopoverContentHarnessFilters, ComPopoverTriggerHarnessFilters };