25 lines
1.0 KiB
Plaintext
25 lines
1.0 KiB
Plaintext
import type PQueue from 'p-queue';
|
|
import type { AstroConfig } from '../../@types/astro.js';
|
|
import type { BuildPipeline } from '../../core/build/buildPipeline.js';
|
|
import type { Logger } from '../../core/logger/core.js';
|
|
import type { MapValue } from '../../type-utils.js';
|
|
import type { AssetsGlobalStaticImagesList } from '../types.js';
|
|
type AssetEnv = {
|
|
logger: Logger;
|
|
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(pipeline: BuildPipeline, totalCount: number): Promise<AssetEnv>;
|
|
export declare function generateImagesForPath(originalFilePath: string, transformsAndPath: MapValue<AssetsGlobalStaticImagesList>, env: AssetEnv, queue: PQueue): Promise<void>;
|
|
export declare function getStaticImageList(): AssetsGlobalStaticImagesList;
|
|
export {};
|