import type { Component } from 'react'; import { StyleProp, ViewStyle } from 'react-native'; export declare let IMAGE_QUALITY_LOW: number; export declare let IMAGE_QUALITY_MEDIUM: number; export declare let IMAGE_QUALITY_HIGH: number; export declare enum IMAGE_QUALITY { IMAGE_QUALITY_HIGH = 0, IMAGE_QUALITY_MEDIUM = 1, IMAGE_QUALITY_LOW = 2 } export type FaceCaptureResult = { croppedImage: string; croppedFaceBoundingBox: { x: number; y: number; width: number; height: number; }; faceBoundingBox: { x: number; y: number; width: number; height: number; }; originalImage: string; }; export type ANALYSIS_FAILURE_CAUSE = 'FaceCaptureAnalysisErrorFaceTooBig' | 'FaceCaptureAnalysisErrorEyesNotOpen' | 'FaceCaptureAnalysisErrorFaceTooSmall' | 'FaceCaptureAnalysisErrorFaceNotStable' | 'FaceCaptureAnalysisErrorNoFaceDetected' | 'FaceCaptureAnalysisErrorFaceNotCentered' | 'FaceCaptureAnalysisErrorFaceNotStraight' | 'FaceCaptureAnalysisErrorEnvironmentTooDark' | 'FaceCaptureAnalysisErrorFaceAnalysisFailed' | 'FaceCaptureAnalysisErrorMultipleFaces'; export type FaceCaptureAnalysisFailure = { cause: ANALYSIS_FAILURE_CAUSE; originalImage: string; }; export type FaceCaptureSuccessState = 'FaceCaptureStateAnalyzing' | 'FaceCaptureStateCameraReady' | 'FaceCaptureStateCameraStopped'; export type FaceCaptureFailureState = 'FaceCaptureStateErrorCameraInitializingError' | 'FaceCaptureStateErrorInvalidState' | 'FaceCaptureStateErrorCameraNotAccessible'; export type ComponentProps = { requireEyesOpen?: boolean; requireValidAngle?: boolean; requiredStableFrames?: number; requireBrightEnvironment?: boolean; imageQuality?: IMAGE_QUALITY; faceCenter?: Array; onFaceCaptureAnalyzedImage: (faceCaptureResult: FaceCaptureResult) => void; onFaceCaptureImageAnalysisFailed: (faceCaptureAnalysisFailure: FaceCaptureAnalysisFailure) => void; onFaceCaptureStateChanged: (faceCaptureState: FaceCaptureSuccessState) => void; onFaceCaptureStateFailed: (faceCaptureStateFailure: FaceCaptureFailureState) => void; style?: StyleProp; ref: Component; };