import type { StaticBuildOptions } from '../../core/build/types.js'; import { type AstroLogger } from '../../core/logger/core.js'; import type { MapValue } from '../../type-utils.js'; import type { AstroConfig } from '../../types/public/config.js'; import type { AssetsGlobalStaticImagesList, SerializedStaticImage } from '../types.js'; type AssetEnv = { logger: AstroLogger; isSSR: boolean; count: { total: number; current: number; }; useCache: boolean; assetsCacheDir: URL; serverRoot: URL; clientRoot: URL; imageConfig: AstroConfig['image']; assetsFolder: AstroConfig['build']['assets']; }; export declare function prepareAssetsGenerationEnv(options: StaticBuildOptions, totalCount: number): Promise; export declare function generateImagesForPath(originalFilePath: string, transformsAndPath: MapValue, env: AssetEnv): Promise; export declare function getStaticImageList(): AssetsGlobalStaticImagesList; /** * Replay transforms attributed to a skipped page back into the global list, so * the asset pipeline emits its optimized images even though the page was not * rendered this build. Existing transforms (already added by a rendered page * that shares the image) are left untouched. */ export declare function restoreStaticImages(images: SerializedStaticImage[]): void; /** Preserve originals referenced without transforms by skipped pages. */ export declare function restoreReferencedImages(fsPaths: string[]): void; export {};