import type { ElementType, FunctionComponent, ImgHTMLAttributes, CSSProperties, ReactEventHandler } from "react"; import type { PlaceholderProps } from "./placeholder"; import type { MainImageProps } from "./main-image"; import type { Layout } from "../image-utils"; export interface GatsbyImageProps extends Omit, "placeholder" | "onLoad" | "src" | "srcSet" | "width" | "height"> { alt: string; as?: ElementType; className?: string; class?: string; imgClassName?: string; image: IGatsbyImageData; imgStyle?: CSSProperties; backgroundColor?: string; objectFit?: CSSProperties["objectFit"]; objectPosition?: CSSProperties["objectPosition"]; onLoad?: (props: { wasCached: boolean; }) => void; onError?: ReactEventHandler; onStartLoad?: (props: { wasCached: boolean; }) => void; } export interface IGatsbyImageData { layout: Layout; width: number; height: number; backgroundColor?: string; images: Pick; placeholder?: Pick; } export declare const GatsbyImage: FunctionComponent; //# sourceMappingURL=gatsby-image.browser.d.ts.map