import type { Source } from "./types"; import type { Core, Fields } from "../.."; import type { GriddoDamDefaults, ImageCropType, ImageDecoding, ImageFormats, ImageLoading, ImagePosition, ImageTransform } from "../../types/core"; interface GetGriddoArtDirectionImage { sources: Array; width?: string; height?: string; widths?: Array; griddoDamDefaults?: GriddoDamDefaults; crop?: Core.ImageCropType; formats?: Array<"avif" | "webp">; quality?: number; position?: Core.ImagePosition; transforms?: Core.ImageTransform; loading?: Core.ImageLoading; decoding?: Core.ImageDecoding; imageField?: Fields.Image; sizes?: string; } declare function getGriddoArtDirectionImageSources(props: GetGriddoArtDirectionImage): { jpeg: { type: string; srcSet: string[] | undefined; sizes: string | undefined; media: string | undefined; width: string; height: string; src: string; }[]; webp: { type: string; srcSet: string[] | undefined; sizes: string | undefined; media: string | undefined; width: string; height: string; src: string; }[]; avif: { type: string; srcSet: string[] | undefined; sizes: string | undefined; media: string | undefined; width: string; height: string; src: string; }[]; }; export interface GenerateImageChunkPropsExperimental { srcSet?: Array; srcSetURL?: Array; format: ImageFormats; } export interface UseGriddoImagePropsExperimental extends Omit { url?: string; } export interface ImageConfigExperimental { blurCSSTransition?: string; blurSize?: string; crop?: ImageCropType; decoding?: ImageDecoding; domain?: string; format?: ImageFormats; formats?: Array; height?: string; loading?: ImageLoading; position?: ImagePosition; quality?: number; transforms?: ImageTransform; width?: string; sizes?: string; widths?: Array; ratio?: number; } export type MIMETypesExperimental = "image/avif" | "image/gif" | "image/jpeg" | "image/png" | "image/svg+xml" | "image/webp"; export interface ImageChunkExperimental { type: MIMETypesExperimental; srcSet?: Array; srcSetURL?: Array; } export interface UseGriddoImageReturnExperimental { type?: string; srcSet?: Array; srcSetURL?: Array; src?: string; sizes?: string; webpFallback?: ImageChunkExperimental; jpg?: ImageChunkExperimental; jpeg?: ImageChunkExperimental; webp?: ImageChunkExperimental; avif?: ImageChunkExperimental; png?: ImageChunkExperimental; gif?: ImageChunkExperimental; svg?: ImageChunkExperimental; } declare function removeCSSUnits(value: string): number; export { getGriddoArtDirectionImageSources as getGriddoArtDirectionImage, removeCSSUnits, };