import { type Attachment, type LinkPreview, type LocalImageAttachment, type LocalVideoAttachment } from 'stream-chat'; import type { Dimensions } from '../../types/types'; type AttachmentPreviewableInGallery = LocalImageAttachment | LocalVideoAttachment | LinkPreview | Attachment; /** Image and video fields shared with gallery items. */ export type BaseImageDescriptor = { alt?: string; dimensions?: Dimensions; imageUrl?: string; title?: string; videoThumbnailUrl?: string; videoUrl?: string; }; /** * Maps an attachment or link preview to the image and video fields that {@link BaseImage} and the * gallery render. * * @param attachment - Attachment or link preview to describe. * @param options.giphyVersionName - Key of `attachment.giphy` that supplies the image URL and * dimensions of a Giphy attachment. Without that version the image loads from `thumb_url`. * @returns The descriptor, or undefined when the attachment is not an image, video, Giphy or link * preview. */ export declare const toBaseImageDescriptors: (attachment: AttachmentPreviewableInGallery, options?: { giphyVersionName?: string; }) => BaseImageDescriptor | undefined; export {}; //# sourceMappingURL=toBaseImageDescriptors.d.ts.map