import { ImageInput, TiffGeneratorParameters, handleImageInput, withSBErrorHandling, } from '../types'; import { ScanbotSDKNativeModule } from './ScanbotSDKModule'; /** * @internal * @hidden */ export const ScanbotTiffGeneratorImpl = { async generateFromImages(params: { images: ImageInput[]; tiffGeneratorParameters: TiffGeneratorParameters; }): Promise { return withSBErrorHandling(async () => { return await ScanbotSDKNativeModule.generateTiffFromImages({ tiffGeneratorParameters: params.tiffGeneratorParameters, images: handleImageInput(params.images), }); }); }, async generateFromDocument(params: { documentUuid: string; tiffGeneratorParameters: TiffGeneratorParameters; }): Promise { return withSBErrorHandling(async () => { return await ScanbotSDKNativeModule.generateTiffFromDocument(params); }); }, };