import { BaseHarnessFilters, HarnessPredicate, ComponentHarness } from '@angular/cdk/testing'; import { SkyQueryableComponentHarness } from '@skyux/core/testing'; import { SkyToastType } from '@skyux/toast'; /** * A set of criteria that can be used to filter a list of `SkyToastHarness` instances. */ interface SkyToastHarnessFilters extends BaseHarnessFilters { /** * Finds toasts with the matching text. */ message?: string; } /** * Harness for interacting with the toast component in tests. */ declare class SkyToastHarness extends SkyQueryableComponentHarness { #private; /** * @internal */ static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a * `SkyToastHarness` that meets certain criteria. */ static with(filters: SkyToastHarnessFilters): HarnessPredicate; /** * Clicks the toast close button. */ close(): Promise; /** * Gets the toast message. */ getMessage(): Promise; /** * Gets the toast type. */ getType(): Promise; } /** * Harness for interacting with toasts' host component in tests. * Use this harness to query and interact with `SkyToastHarness` for open toast components. */ declare class SkyToasterHarness extends ComponentHarness { /** * @internal */ static hostSelector: string; getNumberOfToasts(): Promise; /** * Gets all open toast harnesses. */ getToasts(): Promise; /** * Gets a toast harness that matches the `message`. */ getToastByMessage(message: string): Promise; } export { SkyToastHarness, SkyToasterHarness }; export type { SkyToastHarnessFilters };