import { BaseHarnessFilters, ContentContainerComponentHarness, HarnessPredicate, HarnessQuery, ComponentHarnessConstructor, TestElement } from '@angular/cdk/testing'; import { NxDropdownHarness } from '@aposin/ng-aquila/dropdown/testing'; import { NxFormfieldControlHarness } from '@aposin/ng-aquila/formfield/testing/control'; import { NxInputHarness } from '@aposin/ng-aquila/input/testing'; interface NxFormfieldErrorHarnessFilters extends BaseHarnessFilters { text?: string | RegExp; } declare class NxFormfieldErrorHarness extends ContentContainerComponentHarness { static hostSelector: string; static with(options?: NxFormfieldErrorHarnessFilters): HarnessPredicate; getText(): Promise; } interface NxFormfieldNoteHarnessFilters extends BaseHarnessFilters { text?: string | RegExp; } declare class NxFormfieldNoteHarness extends ContentContainerComponentHarness { static hostSelector: string; static with(options?: NxFormfieldNoteHarnessFilters): HarnessPredicate; getText(): Promise; } interface NxFormfieldFilters extends BaseHarnessFilters { label?: string | RegExp; hasErrors?: boolean; readonly?: boolean; } type FormfieldControlHarness = NxInputHarness | NxDropdownHarness; declare class NxFormfieldHarness extends ContentContainerComponentHarness { static hostSelector: string; static with(options?: NxFormfieldFilters): HarnessPredicate; private _label; private _prefix; private _suffix; private _appendix; private _hint; private _inputControl; private _dropdownControl; /** * Gets the control inside the form-field, matching the query */ getControl(type: HarnessQuery): Promise; /** * Gets the control inside the form-field, matching the provided control harness */ getControl(type: ComponentHarnessConstructor): Promise; /** * Gets the control inside the form field, only supporting default controls (input, dropdown, etc.) */ getControl(): Promise; getLabel(): Promise; getPrefix(): Promise; getSuffix(): Promise; getAppendix(): Promise; getHint(): Promise; getHintText(): Promise; getErrors(filter?: NxFormfieldErrorHarnessFilters): Promise; getErrorTexts(filter?: NxFormfieldErrorHarnessFilters): Promise; hasErrors(filter?: NxFormfieldErrorHarnessFilters): Promise; getNotes(filter?: NxFormfieldNoteHarnessFilters): Promise; getNoteTexts(filter?: NxFormfieldNoteHarnessFilters): Promise; hasNotes(filter?: NxFormfieldNoteHarnessFilters): Promise; isValid(): Promise; isReadonly(): Promise; } export { NxFormfieldErrorHarness, NxFormfieldHarness, NxFormfieldNoteHarness }; export type { FormfieldControlHarness, NxFormfieldErrorHarnessFilters, NxFormfieldFilters, NxFormfieldNoteHarnessFilters };