@adonis-agora/media
Version:
Media-library for AdonisJS — owner collections (MIME whitelist, single-file replace, ordering), image conversions (eager/lazy), pluggable content transformers (HLS video via mediabunny, metadata probe, image blur-up placeholder), and column attachments, a
15 lines • 732 B
TypeScript
import type { ConversionPreset, ConversionResult, ConvertOptions, ImageProcessor } from '../image_processor.js';
/**
* Deterministic {@link ImageProcessor} for tests — never touches sharp. It records every call and
* returns a tiny synthetic buffer tagged with the preset, so conversion paths and lazy/eager
* behaviour can be asserted without real image decoding.
*/
export declare class FakeImageProcessor implements ImageProcessor {
readonly calls: Array<{
inputSize: number;
preset: ConversionPreset;
options?: ConvertOptions;
}>;
convert(input: Buffer, preset: ConversionPreset, options?: ConvertOptions): Promise<ConversionResult>;
}
//# sourceMappingURL=fake_image_processor.d.ts.map