import { GatsbyCache, Reporter, ParentSpanPluginArgs, Actions } from "gatsby"; import type { FileSystemNode } from "gatsby-source-filesystem"; import { IStaticImageProps } from "../components/static-image.server"; import { ISharpGatsbyImageArgs } from "../image-utils"; export interface IImageMetadata { isFixed: boolean; contentDigest?: string; args: Record; cacheFilename: string; } export declare function createImageNode({ fullPath, createNodeId, createNode, reporter, }: { fullPath: string; createNodeId: ParentSpanPluginArgs["createNodeId"]; createNode: Actions["createNode"]; reporter: Reporter; }): Promise; export declare const isRemoteURL: (url: string) => boolean; export declare function writeImages({ images, pathPrefix, cacheDir, reporter, cache, sourceDir, createNodeId, createNode, filename, }: { images: Map; pathPrefix: string; cacheDir: string; reporter: Reporter; cache: GatsbyCache; sourceDir: string; createNodeId: ParentSpanPluginArgs["createNodeId"]; createNode: Actions["createNode"]; filename: string; }): Promise; export declare function writeImage(file: FileSystemNode, args: ISharpGatsbyImageArgs, pathPrefix: string, reporter: Reporter, cache: GatsbyCache, filename: string): Promise;