import { EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef } from '@angular/core'; import { Action, Attachment } from 'stream-chat'; import { ModalContext, AttachmentConfigration, VideoAttachmentConfiguration, ImageAttachmentConfiguration, AttachmentContext, CustomAttachmentListContext, GalleryAttachment } from '../types'; import { ChannelService } from '../channel.service'; import { CustomTemplatesService } from '../custom-templates.service'; import { AttachmentConfigurationService } from '../attachment-configuration.service'; import { MessageService } from '../message.service'; import * as i0 from "@angular/core"; /** * The `AttachmentList` component displays the attachments of a message */ export declare class AttachmentListComponent implements OnChanges, OnInit, OnDestroy { readonly customTemplatesService: CustomTemplatesService; private channelService; private attachmentConfigurationService; private messageService; /** * The id of the message the attachments belong to */ messageId: string | undefined; /** * The parent id of the message the attachments belong to */ parentMessageId: string | undefined; /** * The attachments to display */ attachments: Attachment[]; /** * Emits the state of the image carousel window */ readonly imageModalStateChange: EventEmitter<"closed" | "opened">; class: string; orderedAttachments: (Attachment | GalleryAttachment)[]; customAttachments: Attachment[]; imagesToView: Attachment[]; imagesToViewCurrentIndex: number; customAttachmentsTemplate?: TemplateRef; private modalContent; private attachmentConfigurations; private subscriptions; constructor(customTemplatesService: CustomTemplatesService, channelService: ChannelService, attachmentConfigurationService: AttachmentConfigurationService, messageService: MessageService); trackByUrl: (_: number, attachment: Attachment | GalleryAttachment) => string | undefined; ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; isImage(attachment: Attachment): boolean; isSvg(attachment: Attachment): boolean; isFile(attachment: Attachment): boolean; isGallery(attachment: Attachment): boolean; isVideo(attachment: Attachment): boolean | "" | undefined; isCard(attachment: Attachment): string | boolean | undefined; isVoiceMessage(attachment: Attachment): boolean; hasFileSize(attachment: Attachment): boolean | "" | 0 | undefined; getFileSize(attachment: Attachment): string; getModalContext(): ModalContext; trimUrl(url?: string | null): string | null; sendAction(action: Action): void; trackByActionValue(_: number, item: Action): string | undefined; openImageModal(attachments: Attachment[], selectedIndex?: number): void; stepImages(dir: -1 | 1): void; trackByImageUrl(_: number, item: Attachment): string | undefined; getAttachmentContext(attachment: Attachment): AttachmentContext; getImageAttachmentConfiguration(attachment: Attachment, type: 'gallery' | 'single', element: HTMLElement): ImageAttachmentConfiguration; getCarouselImageAttachmentConfiguration(attachment: Attachment, element: HTMLElement): ImageAttachmentConfiguration; getVideoAttachmentConfiguration(attachment: Attachment, element: HTMLElement): VideoAttachmentConfiguration; getCardAttachmentConfiguration(attachment: Attachment): AttachmentConfigration; isGalleryType(attachment: Attachment | GalleryAttachment): attachment is GalleryAttachment; get isImageModalPrevButtonVisible(): boolean; get isImageModalNextButtonVisible(): boolean; private createGallery; private closeImageModal; private getAttachmentUrl; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }