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!

7 lines (6 loc) 474 B
import { JSXOpeningElement } from "@babel/types"; import { NodePath } from "@babel/core"; export declare const SHARP_ATTRIBUTES: Set<string>; export declare function normalizeProps(props: Record<string, unknown>): Record<string, unknown>; export declare function evaluateImageAttributes(nodePath: NodePath<JSXOpeningElement>, onError?: (prop: string, nodePath: NodePath<any>) => void): Record<string, unknown>; export declare function hashOptions(options: unknown): string;