import sharp from "sharp"; export declare class Image { /** * More options */ protected options: any; /** * Sharp image object */ readonly image: sharp.Sharp; /** * Constructor */ constructor(image: Parameters[0]); /** * Set image opacity (0-100) */ opacity(opacity: number): this; /** * Convert image to black and white */ blackAndWhite(): this; /** * Get image dimensions */ dimensions(): Promise<{ width: any; height: any; }>; /** * Get image metadata */ metadata(): Promise; /** * Create image instance from url */ static fromUrl(url: string): Promise; /** * Resize image */ resize(options: sharp.ResizeOptions): this; /** * Set image quality */ quality(quality: number): this; /** * Save to file */ save(path: string): Promise; /** * Convert to webp and save to file */ saveAsWebp(path: string): Promise; /** * Add watermark */ watermark(watermarkImage: Parameters[0] | Image, options?: sharp.OverlayOptions): Promise; /** * Rotate image */ rotate(angle: number): this; /** * Blur image */ blur(sigma: number): this; /** * Convert to base64 */ toBase64(): Promise; /** * Sharpen image */ sharpen(options?: sharp.SharpenOptions): this; /** * Convert to buffer */ toBuffer(): any; } //# sourceMappingURL=image.d.ts.map