import type { FetchPriority, ImageCropType, ImageDecoding, ImageLoading, ImagePosition, ImageTransform, ResponsiveImageProps } from "../../types/core"; import * as React from "react"; import "react-aspect-ratio/aspect-ratio.css"; import "./styles.css"; /** * Renders an image from the **Griddo** cdn. * Also return a ref with the `` tag. * @see [Documentation](https://www.notion.so/griddoio/GriddoImage-a3973298b4e7447884f29185dae2d07e) * * @example * */ declare const GriddoImage: React.ForwardRefExoticComponent<(Omit | Omit | Omit) & React.RefAttributes>; export interface GriddoImageCommonProps extends Omit, "src" | "srcSet" | "sizes" | "width" | "height"> { crop?: ImageCropType; fetchpriority?: FetchPriority; height?: string; position?: ImagePosition; url?: string; width?: string; ratio?: number; fixed?: boolean; loading?: ImageLoading; decoding?: ImageDecoding; responsive?: Array; quality?: number; formats?: Array<"webp" | "avif">; transforms?: ImageTransform; } export interface GriddoImageSvg extends GriddoImageCommonProps { format?: "svg"; responsive?: never; quality?: never; formats?: never; transforms?: never; ratio?: never; } export interface GriddoImageGif extends GriddoImageCommonProps { format?: "gif"; responsive?: never; quality?: never; formats?: never; transforms?: never; } export interface GriddoImageJpgWebpAvif extends GriddoImageCommonProps { /** Format is set automatically based on formats prop */ format?: never; } export type GriddoImageProps = GriddoImageJpgWebpAvif | GriddoImageGif | GriddoImageSvg; export { GriddoImage };