import type { ImageCropType, ImageDecoding, ImageFormats, ImageLoading, ImagePosition, ImageTransform, ResponsiveImageProps } from "../types/core"; /** * `useGriddoImage()` */ declare function useGriddoImage({ url, ...props }: UseGriddoImageProps): UseGriddoImageReturn; export interface GenerateImageChunkProps { srcSet?: Array; srcSetURL?: Array; format: ImageFormats; } export interface UseGriddoImageProps extends Omit { url?: string; } export interface ImageConfig { blurCSSTransition?: string; blurSize?: string; crop?: ImageCropType; decoding?: ImageDecoding; domain?: string; format?: ImageFormats; formats?: Array; height?: string; loading?: ImageLoading; position?: ImagePosition; quality?: number; responsive?: Array; transforms?: ImageTransform; width?: string; sizes?: string; } export type MIMETypes = "image/avif" | "image/gif" | "image/jpeg" | "image/png" | "image/svg+xml" | "image/webp"; export interface ImageChunk { type: MIMETypes; srcSet?: Array; srcSetURL?: Array; } export interface UseGriddoImageReturn { type?: string; srcSet?: Array; srcSetURL?: Array; src?: string; sizes?: string; webpFallback?: ImageChunk; jpg?: ImageChunk; jpeg?: ImageChunk; webp?: ImageChunk; avif?: ImageChunk; png?: ImageChunk; gif?: ImageChunk; svg?: ImageChunk; } export { useGriddoImage };