UNPKG

astro

Version:

Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

10 lines (9 loc) 514 B
import type { ImageTransform } from '../types.js'; /** * Converts a file path and transformation properties into a formatted filename. * * `<prefixDirname>/<baseFilename>_<hash><outputExtension>` */ export declare function propsToFilename(filePath: string, transform: ImageTransform, hash: string): string; /** Hashes the subset of transform properties that affect the output image. */ export declare function hashTransform(transform: ImageTransform, imageService: string, propertiesToHash: string[]): string;