/** * WebP Decoder - Instance-based decoder for efficient batch processing */ import { WebPDecodeOptions, DecodedImage } from './types'; /** * WebP Decoder class * * Creates a decoder instance that can be reused for multiple images, * reducing initialization overhead. * * @example * ```typescript * const decoder = new WebPDecoder({ format: PixelFormat.RGBA }); * const decoded1 = decoder.decode(webpData1); * const decoded2 = decoder.decode(webpData2); * decoder.close(); * ``` */ export declare class WebPDecoder { private decoderPtr; private closed; /** * Create a new WebP decoder with the given options * @param options Partial WebP decoding options (merged with defaults) */ constructor(options?: Partial); /** * Decode WebP data to pixel data * @param webpData Buffer containing WebP encoded data * @returns Decoded image with pixel data */ decode(webpData: Buffer): DecodedImage; /** * Close the decoder and free resources * Must be called when done using the decoder */ close(): void; /** * Get default WebP decoding options */ static getDefaultOptions(): WebPDecodeOptions; /** * Convert TypeScript options to C struct */ private convertOptions; } //# sourceMappingURL=webp-decoder.d.ts.map