import * as i0 from '@angular/core'; import * as i1 from '@skyux/phone-field'; import { HarnessPredicate } from '@angular/cdk/testing'; import { SkyHarnessFilters, SkyInputHarness, SkyComponentHarness } from '@skyux/core/testing'; /** * @internal */ declare class SkyPhoneFieldTestingModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } /** * A set of criteria that can be used to filter a list of SkyPhoneFieldHarness instances. */ interface SkyPhoneFieldHarnessFilters extends SkyHarnessFilters { } /** * Harness to interact with the phone field input harness. */ declare class SkyPhoneFieldInputHarness extends SkyInputHarness { /** * @internal */ static hostSelector: string; } /** * Harness for interacting with a phone field component in tests. */ declare class SkyPhoneFieldHarness extends SkyComponentHarness { #private; /** * Finds a standard phone field component, or a phone field component that is wrapped by an input box component. * For input box implementations, we need to use the `.sky-input-box` selector since the `sky-country-field` * element is removed from the DOM. * @internal */ static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a * `SkyPhoneFieldHarness` that meets certain criteria. * * These filters only work for standalone phone fields. For phone fields * wrapped inside `sky-input-box`, place filters on the input box * instead and query the datepicker using a `SkyInputBoxHarness`. * For the input box implementation, see the code example. */ static with(filters: SkyPhoneFieldHarnessFilters): HarnessPredicate; /** * Gets the phone field input harness. */ getControl(): Promise; /** * Returns the selected country iso2 code. */ getSelectedCountryIso2(): Promise; /** * Returns the selected country name. */ getSelectedCountryName(): Promise; /** * Opens the country selector, performs a search, but makes no selection. * @param searchText The name of the country to select. * @returns The list of country names matching the search text. */ searchCountry(searchText: string): Promise; /** * Opens the country selector, performs a search, and selects the first result (if any). * @param searchText The name of the country to select. */ selectCountry(searchText: string): Promise; } export { SkyPhoneFieldHarness, SkyPhoneFieldInputHarness, SkyPhoneFieldTestingModule }; export type { SkyPhoneFieldHarnessFilters };