import * as i0 from '@angular/core'; import { AfterViewInit, OnDestroy, EventEmitter } from '@angular/core'; import { SkyFileItem, SkyFileDropChange } from '@skyux/forms'; import { Observable } from 'rxjs'; type SkyAvatarSize = 'large' | 'medium' | 'small'; type SkyAvatarSrc = string | Blob | File; /** * @internal */ declare class SkyAvatarInnerComponent implements AfterViewInit, OnDestroy { #private; get src(): SkyAvatarSrc | undefined; set src(value: SkyAvatarSrc | undefined); get name(): string | undefined; set name(value: string | undefined); size: SkyAvatarSize | undefined; get initials(): string | undefined; get colorIndex(): number; ngAfterViewInit(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SkyAvatarComponent { #private; /** * Whether users can change the image. To select a different image, * users click the image or drag another image on top of it, * much like the `sky-file-drop` component in the * [file attachment module](https://developer.blackbaud.com/skyux/components/file-attachments/file-attachment). * @default false */ set canChange(value: boolean | undefined); get canChange(): boolean; /** * The name of the record that the avatar represents. * If the `src` property does not specify an image, the component displays * initials from the first and last words in the name. To ensure * that the component extracts the correct initials, specify a name with no prefix * or suffix, or just specify initials with a space between them. This property is * not required, but the component requires either the `name` or `src` property. */ set name(value: string | undefined); get name(): string | undefined; /** * The image to identify a record. This property is * not required, but the component requires either the `name` or `src` property. */ set src(value: SkyAvatarSrc | undefined); get src(): SkyAvatarSrc | undefined; /** * The maximum file size for the image in bytes. * @default 512000 bytes */ maxFileSize: number | undefined; /** * The size of the avatar. * Acceptable values are: `"small"`, `"medium"`, and `"large"`. * @default "large" */ size: SkyAvatarSize | undefined; /** * Emits a `SkyFileItem` object when the image is updated. */ avatarChanged: EventEmitter; protected sizeDefault: Observable | undefined; constructor(); photoDrop(result: SkyFileDropChange): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SkyAvatarModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { SkyAvatarModule, SkyAvatarComponent as λ1 }; export type { SkyAvatarSize, SkyAvatarSrc };