File size: 604 Bytes
4a5ef51 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | import {NativeModule, requireNativeModule} from 'expo';
import type {BarcodeScanResult, ImageMetadata, TestBarcodeImage} from './MentraBarcodeScanner.types';
declare class MentraBarcodeScannerModule extends NativeModule<{}> {
createTestBarcodeImage(value: string): Promise<TestBarcodeImage>;
getImageMetadata(imageUri: string): Promise<ImageMetadata>;
isSupported(): Promise<boolean>;
openImage(imageUri: string): Promise<void>;
scanImage(imageUri: string): Promise<BarcodeScanResult[]>;
}
export default requireNativeModule<MentraBarcodeScannerModule>('MentraBarcodeScanner');
|