import { ComponentHarness, BaseHarnessFilters, HarnessPredicate } from '@angular/cdk/testing'; /** Harness filters for ComCodeBlockHarness. */ interface ComCodeBlockHarnessFilters extends BaseHarnessFilters { /** Filter by the code block's language label. */ language?: string | RegExp; } /** * Harness for interacting with a ComCodeBlock in tests. */ declare class ComCodeBlockHarness extends ComponentHarness { static hostSelector: string; private readonly codeElement; private readonly preElement; private readonly copyButton; /** * Gets a HarnessPredicate for matching code blocks. * @param options Filter options. */ static with(options?: ComCodeBlockHarnessFilters): HarnessPredicate; /** Gets the code text content. */ getCode(): Promise; /** * Gets the language label. * Returns `null` if no language is set. */ getLanguage(): Promise; /** Clicks the copy button to copy code to clipboard. */ copyToClipboard(): Promise; /** Whether the copy button is currently showing the "Copied" state. */ isCopied(): Promise; /** Gets the copy button's aria-label. */ getCopyButtonLabel(): Promise; /** Whether the code block is disabled (copy button is disabled). */ isDisabled(): Promise; /** Whether the code block host is focused. */ isFocused(): Promise; /** Focuses the code block host element. */ focus(): Promise; /** Blurs the code block host element. */ blur(): Promise; } export { ComCodeBlockHarness }; export type { ComCodeBlockHarnessFilters };