import type { FileItem, Video } from '@chayns-components/core'; export type GalleryMediaFile = FileItem['file']; export type MediaContentSize = { height: number; width: number; }; export declare const isVideoFile: (file: GalleryMediaFile) => file is Video; export declare const getMediaSourceUrl: (file: GalleryMediaFile) => string; export declare const getMediaPreviewUrl: (file: GalleryMediaFile, previewUrl?: string) => string | undefined; /** * Checks whether the given URL belongs to the chayns image service. */ export declare const isImageServiceUrl: (url: string) => boolean; /** * Detects whether the given image-service URL already contains resize parameters. */ export declare const hasImageServiceTransformParameters: (url: string) => boolean; /** * Expands a chayns image-service URL to a display-appropriate size when no transform is present. */ export declare const getResponsiveImageServiceUrl: (url: string, size?: MediaContentSize, devicePixelRatio?: number) => string;