import { ComponentHarness, BaseHarnessFilters, HarnessPredicate } from '@angular/cdk/testing'; /** Harness filters for ComTabHarness. */ interface ComTabHarnessFilters extends BaseHarnessFilters { /** Filter by the tab's label text. */ label?: string | RegExp; /** Filter by whether the tab is selected. */ selected?: boolean; /** Filter by whether the tab is disabled. */ disabled?: boolean; } /** Harness filters for ComTabGroupHarness. */ type ComTabGroupHarnessFilters = BaseHarnessFilters; /** * Harness for interacting with an individual tab button in tests. */ declare class ComTabHarness extends ComponentHarness { static hostSelector: string; private readonly closeButton; /** * Gets a HarnessPredicate for matching tab buttons. * @param options Filter options. */ static with(options?: ComTabHarnessFilters): HarnessPredicate; /** Gets the tab's label text. */ getLabel(): Promise; /** Whether the tab is currently selected. */ isSelected(): Promise; /** Whether the tab is disabled. */ isDisabled(): Promise; /** Clicks the tab to select it. */ select(): Promise; /** Gets the aria-controls attribute linking to the panel. */ getAriaControls(): Promise; /** Whether the tab is closable. */ isClosable(): Promise; /** Clicks the close button on the tab. Throws if not closable. */ close(): Promise; /** Focuses the tab button. */ focus(): Promise; /** Blurs the tab button. */ blur(): Promise; /** Whether the tab button is focused. */ isFocused(): Promise; } /** * Harness for interacting with a ComTabGroup in tests. */ declare class ComTabGroupHarness extends ComponentHarness { static hostSelector: string; /** * Gets a HarnessPredicate for matching tab groups. * @param options Filter options. */ static with(options?: ComTabGroupHarnessFilters): HarnessPredicate; /** Gets all tab buttons, optionally filtered. */ getTabs(filters?: ComTabHarnessFilters): Promise; /** Gets the currently selected tab. Throws if none is selected. */ getSelectedTab(): Promise; /** Selects a tab matching the given filter. */ selectTab(filter: ComTabHarnessFilters): Promise; /** Gets all tab label texts. */ getTabLabels(): Promise; } export { ComTabGroupHarness, ComTabHarness }; export type { ComTabGroupHarnessFilters, ComTabHarnessFilters };