import React from 'react'; import type { MrzReaderProps } from './MrzReaderProps'; export type CameraPermissionStatus = 'authorized' | 'not-determined' | 'denied' | 'restricted'; export type CameraPermissionRequestResult = 'authorized' | 'denied'; export declare class MrzReaderView extends React.PureComponent { private readonly ref; /** @internal */ constructor(props: MrzReaderProps); /** * Gets the current Camera Permission Status. Check this before mounting the Camera to ensure * the user has permitted the app to use the camera. * * To actually prompt the user for camera permission, use {@linkcode MrzReaderView.requestCameraPermission | requestCameraPermission()}. * * @throws {@linkcode CameraRuntimeError} When any kind of error occured while getting the current permission status. Use the {@linkcode CameraRuntimeError.code | code} property to get the actual error */ static getCameraPermissionStatus(): Promise; /** * Shows a "request permission" alert to the user, and resolves with the new camera permission status. * * If the user has previously blocked the app from using the camera, the alert will not be shown * and `"denied"` will be returned. * * @throws {@linkcode CameraRuntimeError} When any kind of error occured while requesting permission. Use the {@linkcode CameraRuntimeError.code | code} property to get the actual error */ static requestCameraPermission(): Promise; private onMrzResult; private onError; /** @internal */ render(): React.ReactNode; } //# sourceMappingURL=MrzReaderView.d.ts.map