import { ComponentFixture } from '@angular/core/testing'; import { HarnessPredicate } from '@angular/cdk/testing'; import { SkyHarnessFilters, SkyComponentHarness } from '@skyux/core/testing'; /** * Allows interaction with a SKY UX avatar component. * @deprecated Use `SkyAvatarHarness` instead. * @internal */ declare class SkyAvatarFixture { #private; /** * The initials displayed when no image URL is specified. */ get initials(): string | undefined; /** * The avatar's current image URL. */ get imageUrl(): string | undefined; constructor(fixture: ComponentFixture, skyTestId: string); } /** * A set of criteria that can be used to filter a list of SkyAvatarHarness instances. */ interface SkyAvatarHarnessFilters extends SkyHarnessFilters { } /** * Harness for interacting with an avatar component in tests. */ declare class SkyAvatarHarness extends SkyComponentHarness { #private; /** * @internal */ static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a * `SkyAvatarHarness` that meets certain criteria. */ static with(filters: SkyAvatarHarnessFilters): HarnessPredicate; /** * Gets the initials displayed when no image URL is specified. */ getInitials(): Promise; /** * Gets the avatar's current image URL or Blob. */ getSrc(): Promise; /** * Gets whether users can change the image. */ getCanChange(): Promise; /** * Simulates the user selecting or dropping an image onto the component. */ dropAvatarFile(file: File, waitForChange?: boolean): Promise; /** * Gets whether an error indicating an invalid file type is displayed. */ hasFileTypeError(): Promise; /** * Gets whether an error indicating an invalid file size is displayed. */ hasMaxSizeError(): Promise; /** * Closes the currently displayed error. */ closeError(): Promise; } export { SkyAvatarFixture, SkyAvatarHarness }; export type { SkyAvatarHarnessFilters };