/// import ImageData from './image_data'; export declare function decodeBuffer(_buffer: Buffer | Uint8Array): Promise; export declare function rotate(image: ImageData, numRotations: number): Promise; declare type ResizeOpts = { image: ImageData; } & ({ width: number; height?: never; } | { height: number; width?: never; }); export declare function resize({ image, width, height }: ResizeOpts): Promise; export declare function encodeJpeg(image: ImageData, { quality }: { quality: number; }): Promise; export declare function encodeWebp(image: ImageData, { quality }: { quality: number; }): Promise; export declare function encodeAvif(image: ImageData, { quality }: { quality: number; }): Promise; export declare function encodePng(image: ImageData): Promise; export {};