import type { ImageExtension, ImageMimeType } from '@uplora/formats'; export type ImageFormat = ImageExtension; /** * Размер изображения */ export interface ImageSize { /** * Ширина * * @example 1024 */ width?: number; /** * Высота * * @example 1024 */ height?: number; /** * Описание размера * * @example 2x, 512px */ descriptor: string; } /** * Источник изображения */ export interface ImageSource { /** * Image URL * * @example https://uplora.ru/fgu1yd2ncj05iogcooz31u55 */ img: string; /** * Image srcset * * @example https://uplora.ru/fgu1yd2ncj05iogcooz31u55/-/format/jpg 1x, https://uplora.ru/fgu1yd2ncj05iogcooz31u55/-/format/jpg 2x */ srcset?: string; /** * Image mime type * * @example image/jpeg */ type?: ImageMimeType; }