import { tt as WorkerFunctions } from "../DataCaptureContext-CAmigtb7.js"; import { n as ImageBuffer, r as ImageConverterInstance, t as BitmapWithFormat } from "../sdcCoreInternalSdkCommonGeometry-BF4xvjjS.js"; //#region src/main/worker/ImageConverterForwarder.d.ts /** * This class is just forwards conversion request to the main thread. * It is meant to be used when OffscreenCanvas is not available in the worker thread. */ declare class ImageConverterForwarder implements ImageConverterInstance { private readonly workerFunctions; private options; private imageIdCounter; private conversions; constructor(workerFunctions: WorkerFunctions, options: { quality: number; }); /** * The conversion will be performed in the main thread. */ convertToJpeg(imageBuffer: ImageBuffer, orientation: number): Promise; convertToBitmap(imageBuffer: ImageBuffer): BitmapWithFormat; /** * Called by the main thread when the conversion has finished. */ onConvertToJPEGResult(imageId: number, result: Uint8Array): void; } //#endregion export { ImageConverterForwarder };