UNPKG

@prezly/theme-kit-core

Version:

Data layer and utility library for developing Prezly themes with JavaScript

12 lines (11 loc) 731 B
import type { NewsroomGallery, UploadedImage } from '@prezly/sdk'; export declare function isEmpty(gallery: Pick<NewsroomGallery, 'images_number' | 'videos_number'>): boolean; export declare function getCoverImage(gallery: Pick<NewsroomGallery, 'thumbnail_image' | 'images'>): UploadedImage | null; /** * This method constructs a URL to download all images in the Gallery as a single archive. * * @param uuid Uploadcare files group UUID * @param title Filename for the saved archive. Usually it is the Gallery title. * @returns URL to an archive containing all of the images in the Gallery. */ export declare function getArchiveDownloadUrl(uuid: NonNullable<NewsroomGallery['uploadcare_group_uuid']>, title: string): string;