import type { log } from './utils/log'; export type ImageFormat = 'jpg' | 'png' | 'avif'; export type ImageCut = [ x: number, y: number, width: number, height: number ]; export type ImageProcessingFilename = (src: string, option: { cut?: ImageCut; size?: number; format?: ImageFormat; }) => string; export type Context = { baseURL: string; distPath: string; imageOptions: { size: number[]; format: ImageFormat[]; }; textureOptions: { size: number[]; format: ImageFormat[]; }; log: typeof log; fetch: typeof fetch; imageProcessingFilename: ImageProcessingFilename | undefined; };