import sharp from 'sharp';

interface ViteSharpOptimazerOptions {
    supportedExts?: string[];
    generate?: {
        inputExts?: string[];
        outputExts?: string[];
        preserveExt?: boolean;
    };
    jpg?: sharp.JpegOptions;
    jpeg?: sharp.JpegOptions;
    png?: sharp.PngOptions;
    gif?: sharp.GifOptions;
    webp?: sharp.WebpOptions;
    avif?: sharp.AvifOptions;
    [key: string]: any;
}

declare function viteImageOptimazer(opts?: ViteSharpOptimazerOptions): any;

export { viteImageOptimazer };
