import { mapRTUUIResult, ResultWrapper, VinScannerScreenConfiguration, VinScannerUiResult, withSBErrorHandling, } from '../types'; import { isIOS, ScanbotSDKUINativeModule } from './ScanbotSDKModule'; /** * @internal * @hidden */ export const ScanbotVinImpl = { async startScanner( configuration: VinScannerScreenConfiguration ): Promise> { return withSBErrorHandling(async () => mapRTUUIResult( await ScanbotSDKUINativeModule.startVinScanner( isIOS ? JSON.stringify(configuration) : configuration ), VinScannerUiResult ) ); }, };