import { type IconName } from '../icons/IconName'; import { type ComponentType } from './ComponentType'; import { type IconVersion } from './IconVersion'; import { type ImageSize } from './ImageSize'; export declare type ImgFormats = 'jpeg' | 'jpg' | 'png' | 'gif' | 'webp' | 'heif' | 'avif'; export interface Img { /** @title Картинка */ src?: string; /** @title Альтернативный текст (alt) */ alt?: string; /** @title Текст подсказки (title) */ title?: string; } /** * @title Брейкпоинт * @enumNames ["Меньше 1920px", "Меньше 1440px", "Меньше 1280px"] */ export declare type MediaQuery = 1919 | 1439 | 1279; export interface ImgSource { /** @title Иконка */ icon?: IconName; /** @title Версия иконки */ iconVersion?: IconVersion; /** @title Картинка */ src?: string; /** @title Формат */ format?: ImgFormats; /** @hidden */ options?: Record; media?: MediaQuery; /** @title Размер изображения */ size?: Partial; } /** @title Изображение */ export interface Picture extends Img, ImgSource, ComponentType { /** @title Другие форматы */ sources?: ImgSource[]; } export declare type IconProps = { /** @title Иконка */ icon?: Picture; };