export interface RawImageData { width: number, height: number, data: T } type BufferRet = RawImageData; type UintArrRet = RawImageData; type ImageData = BufferRet | UintArrRet; type BufferLike = Buffer | Uint8Array | ArrayLike | Iterable | ArrayBuffer; export declare function encode(imgData: RawImageData, quality?: number): BufferRet; /** * @deprecated - decode takes an object since 0.3.5 */ export declare function decode(jpegData: BufferLike, opts: true): UintArrRet; export declare function decode(jpegData: BufferLike, opts?: false): BufferRet; export declare function decode(jpegData: BufferLike, opts: { useTArray: true, colorTransform?: boolean }): UintArrRet; export declare function decode(jpegData: BufferLike, opts?: { useTArray?: false, colorTransform?: boolean }): BufferRet;