import { ComponentFixture } from '@angular/core/testing'; import { SkyQueryableComponentHarness, SkyHarnessFilters, SkyComponentHarness } from '@skyux/core/testing'; import { HarnessPredicate } from '@angular/cdk/testing'; import { SkyErrorType } from '@skyux/errors'; /** * Allows interaction with a SKY UX error component. * @deprecated Use `SkyErrorHarness` instead. * @internal */ declare class SkyErrorFixture { #private; /** * The error's current type. */ get errorType(): string | undefined; constructor(fixture: ComponentFixture, skyTestId: string); } /** * Harness for interacting with an error action component in tests. */ declare class SkyErrorActionHarness extends SkyQueryableComponentHarness { /** * @internal */ static hostSelector: string; } /** * A set of criteria that can be used to filter a list of `SkyErrorHarness` instances. */ interface SkyErrorHarnessFilters extends SkyHarnessFilters { } /** * Harness for interacting with an error image component in tests. */ declare class SkyErrorImageHarness extends SkyQueryableComponentHarness { /** * @internal */ static hostSelector: string; } /** * Harness for interacting with an error component in tests. */ declare class SkyErrorHarness extends SkyComponentHarness { #private; /** * @internal */ static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a * `SkyErrorHarness` that meets certain criteria. */ static with(filters: SkyErrorHarnessFilters): HarnessPredicate; /** * Clicks the action button in the error action. */ clickActionButton(): Promise; /** * Gets the text of the action button in the error action. */ getActionButtonText(): Promise; /** * Gets the description of the error. */ getDescription(): Promise; /** * Gets an error action harness. */ getErrorAction(): Promise; /** * Gets an error image harness. */ getErrorImage(): Promise; /** * Gets the error type. */ getErrorType(): Promise; /** * Gets the title of the error. */ getTitle(): Promise; /** * Whether the error displays an image. */ hasImage(): Promise; } /** * Harness for interacting with an error modal component in tests. * @internal */ declare class SkyErrorModalHarness extends SkyComponentHarness { #private; /** * @internal */ static hostSelector: string; /** * Gets the title of the error modal. */ getTitle(): Promise; /** * Gets the description of the error modal. */ getDescription(): Promise; /** * Gets the text of the error modal close button. */ getCloseText(): Promise; /** * Clicks the error modal close button. */ clickCloseButton(): Promise; } export { SkyErrorActionHarness, SkyErrorFixture, SkyErrorHarness, SkyErrorImageHarness, SkyErrorModalHarness }; export type { SkyErrorHarnessFilters };