import { ComponentHarness, BaseHarnessFilters, HarnessPredicate, TestElement } from '@angular/cdk/testing'; /** Harness filters for ComFormFieldHarness. */ interface ComFormFieldHarnessFilters extends BaseHarnessFilters { /** Filter by the form field's label text. */ label?: string | RegExp; /** Filter by whether the form field has errors. */ hasErrors?: boolean; /** Filter by whether the form field is disabled. */ disabled?: boolean; /** Filter by whether the label is floating. */ floatingLabel?: boolean; } /** * Harness for interacting with a ComFormField in tests. */ declare class ComFormFieldHarness extends ComponentHarness { static hostSelector: string; private readonly label; private readonly input; private readonly hints; private readonly errors; private readonly prefix; private readonly suffix; /** * Gets a HarnessPredicate for matching form fields. * @param options Filter options. */ static with(options?: ComFormFieldHarnessFilters): HarnessPredicate; /** Gets the form field's label text, or null if no label is present. */ getLabel(): Promise; /** Whether the form field has a label. */ hasLabel(): Promise; /** Whether the form field is disabled. */ isDisabled(): Promise; /** Whether the form field is focused. */ isFocused(): Promise; /** Whether the form field has errors. */ hasErrors(): Promise; /** Whether the label is currently floating. */ isLabelFloating(): Promise; /** Gets the text content of all visible error elements. */ getTextErrors(): Promise; /** Gets the text content of all hint elements. */ getTextHints(): Promise; /** Whether the form field has a prefix element. */ hasPrefix(): Promise; /** Whether the form field has a suffix element. */ hasSuffix(): Promise; /** Whether the form field's control is required. */ isRequired(): Promise; /** Gets the form field's inner control element (input or textarea). */ getControl(): Promise; /** Focuses the form field's inner control element. */ focus(): Promise; /** Blurs the form field's inner control element. */ blur(): Promise; } export { ComFormFieldHarness }; export type { ComFormFieldHarnessFilters };