stream-chat-react
Version:
React components to create chat conversations or livestream style chat
20 lines • 904 B
TypeScript
import { type Attachment, type LinkPreview, type LocalImageAttachment, type LocalVideoAttachment } from 'stream-chat';
import type { Dimensions } from '../../types/types';
type AttachmentPreviewableInGallery = LocalImageAttachment | LocalVideoAttachment | LinkPreview | Attachment;
/** Fields shared with gallery items for image/video preview from an attachment. */
export type BaseImageDescriptor = {
alt?: string;
dimensions?: Dimensions;
imageUrl?: string;
title?: string;
videoThumbnailUrl?: string;
videoUrl?: string;
};
/**
* Maps an attachment (or link preview) to image/video URLs and metadata for {@link BaseImage} or the gallery.
*/
export declare const toBaseImageDescriptors: (attachment: AttachmentPreviewableInGallery, options?: {
giphyVersionName?: string;
}) => BaseImageDescriptor | undefined;
export {};
//# sourceMappingURL=toBaseImageDescriptors.d.ts.map