import type { ImageManifest } from "./service.js"; export type ImageFormat = "webp" | "avif" | "jpeg" | "png"; export interface RegisteredImage { src: string; widths: number[]; formats: ImageFormat[]; } /** * Set the active image manifest. Called by the build pipeline after * processing, or by the SSR server on startup. */ export declare function setImageManifest(manifest: ImageManifest | null): void; /** * Returns the currently active image manifest (or null). Used by `image()` * to decide between `` (manifest present) and plain ``. */ export declare function getActiveManifest(): ImageManifest | null; /** * Returns the images registered during the current render pass and clears * the registry. Called by the build pipeline after rendering all pages. */ export declare function consumeImageRegistry(): RegisteredImage[]; /** * Registers an image for build-time processing (if sharp is available). */ export declare function registerImage(src: string, widths: number[]): void;