UNPKG

@stacksjs/stx

Version:

A performant UI Framework. Powered by Bun.

13 lines 778 B
import type { EnhancedImgProps, ProcessedImageResult, TsImagesConfig, ImageFormat, ImageTransformationConfig, } from '../../types'; /** * Process a single image with ts-images */ export declare function processImage(src: string, options: Partial<EnhancedImgProps>, config: TsImagesConfig): Promise<ProcessedImageResult>; /** * Optimize a single image without responsive variants */ export declare function optimizeImage(src: string, format: ImageFormat, quality: number, outputPath: string): Promise<{ success: boolean; size?: number; error?: string }>; /** * Apply transformations to an image */ export declare function applyTransformations(src: string, transformations: ImageTransformationConfig[], tsImages?: typeof import('ts-images') | null): Promise<Buffer | null>;