import { ComponentHarness, BaseHarnessFilters, HarnessPredicate } from '@angular/cdk/testing'; /** Harness filters for ComTooltipHarness. */ interface ComTooltipHarnessFilters extends BaseHarnessFilters { /** Filter by the trigger element's text content. */ text?: string | RegExp; } /** * Harness for interacting with a `[comTooltip]` directive in tests. * * The tooltip panel is rendered in a CDK overlay, so this harness uses * `documentRootLocatorFactory()` to locate the panel in the document root. */ declare class ComTooltipHarness extends ComponentHarness { static hostSelector: string; private readonly documentRootLocator; /** * Gets a HarnessPredicate for matching tooltip triggers. * @param options Filter options. */ static with(options?: ComTooltipHarnessFilters): HarnessPredicate; /** Gets the trigger element's text content. */ getText(): Promise; /** Whether the tooltip is currently open/visible. */ isOpen(): Promise; /** * Shows the tooltip by hovering over the trigger element. * If the tooltip is already open, this is a no-op. */ show(): Promise; /** * Hides the tooltip by pressing Escape on the trigger element. * If the tooltip is already closed, this is a no-op. */ hide(): Promise; /** * Gets the text content of the tooltip panel. * Returns `null` if the tooltip is not open. */ getTooltipText(): Promise; /** * Gets the side the tooltip is positioned on (`data-side` attribute). * Returns `null` if the tooltip is not open. */ getTooltipSide(): Promise; /** Gets the `aria-describedby` value from the trigger element. */ getAriaDescribedBy(): Promise; /** Focuses the trigger element (also shows the tooltip via focusin). */ focus(): Promise; /** Blurs the trigger element (hides the tooltip via focusout). */ blur(): Promise; /** Whether the trigger element is currently focused. */ isFocused(): Promise; } export { ComTooltipHarness }; export type { ComTooltipHarnessFilters };