UNPKG

gatsby-plugin-image

Version:

Adding responsive images to your site while maintaining high performance scores can be difficult to do manually. The Gatsby Image plugin handles the hard parts of producing images in multiple sizes and formats for you!

10 lines 736 B
import React from "react"; import type { GatsbyImageProps } from "./gatsby-image.browser"; type LazyHydrateProps = Omit<GatsbyImageProps, "as" | "style" | "className"> & { isLoading: boolean; isLoaded: boolean; }; export declare function swapPlaceholderImage(element: HTMLElement, cacheKey: string, imageCache: Set<string>, style: React.CSSProperties, onStartLoad: GatsbyImageProps["onStartLoad"], onLoad: GatsbyImageProps["onLoad"], onError: GatsbyImageProps["onError"]): () => void; export declare function renderImageToString({ image, loading, isLoading, isLoaded, imgClassName, imgStyle, objectPosition, backgroundColor, objectFit, ...props }: LazyHydrateProps): string; export {}; //# sourceMappingURL=lazy-hydrate.d.ts.map