import PropTypes from 'prop-types'; import React from 'react'; import { CameraCapturedPicture, CameraNativeProps, CameraPictureOptions, CameraProps, CameraRecordingOptions, PermissionResponse, PermissionStatus, PermissionExpiration, BarCodeScanningResult, FaceDetectionResult, CameraMountError } from './Camera.types'; export default class Camera extends React.Component { static isAvailableAsync(): Promise; static getAvailableCameraTypesAsync(): Promise<('front' | 'back')[]>; static Constants: { Type: any; FlashMode: any; AutoFocus: any; WhiteBalance: any; VideoQuality: any; VideoStabilization: any; }; static ConversionTables: { type: any; flashMode: any; autoFocus: any; whiteBalance: any; }; static propTypes: { zoom: PropTypes.Requireable; ratio: PropTypes.Requireable; focusDepth: PropTypes.Requireable; onMountError: PropTypes.Requireable<(...args: any[]) => any>; pictureSize: PropTypes.Requireable; onCameraReady: PropTypes.Requireable<(...args: any[]) => any>; useCamera2Api: PropTypes.Requireable; onBarCodeScanned: PropTypes.Requireable<(...args: any[]) => any>; barCodeScannerSettings: PropTypes.Requireable; onFacesDetected: PropTypes.Requireable<(...args: any[]) => any>; faceDetectorSettings: PropTypes.Requireable; type: PropTypes.Requireable; flashMode: PropTypes.Requireable; videoStabilizationMode: PropTypes.Requireable; whiteBalance: PropTypes.Requireable; autoFocus: PropTypes.Requireable; hitSlop?: PropTypes.Validator | undefined; onLayout?: PropTypes.Validator<((event: import("react-native").LayoutChangeEvent) => void) | undefined> | undefined; pointerEvents?: PropTypes.Validator<"box-none" | "none" | "box-only" | "auto" | undefined> | undefined; removeClippedSubviews?: PropTypes.Validator | undefined; style?: PropTypes.Validator> | undefined; testID?: PropTypes.Validator | undefined; nativeID?: PropTypes.Validator | undefined; collapsable?: PropTypes.Validator | undefined; needsOffscreenAlphaCompositing?: PropTypes.Validator | undefined; renderToHardwareTextureAndroid?: PropTypes.Validator | undefined; shouldRasterizeIOS?: PropTypes.Validator | undefined; isTVSelectable?: PropTypes.Validator | undefined; hasTVPreferredFocus?: PropTypes.Validator | undefined; tvParallaxProperties?: PropTypes.Validator | undefined; tvParallaxShiftDistanceX?: PropTypes.Validator | undefined; tvParallaxShiftDistanceY?: PropTypes.Validator | undefined; tvParallaxTiltAngle?: PropTypes.Validator | undefined; tvParallaxMagnification?: PropTypes.Validator | undefined; onStartShouldSetResponder?: PropTypes.Validator<((event: import("react-native").GestureResponderEvent) => boolean) | undefined> | undefined; onMoveShouldSetResponder?: PropTypes.Validator<((event: import("react-native").GestureResponderEvent) => boolean) | undefined> | undefined; onResponderEnd?: PropTypes.Validator<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined; onResponderGrant?: PropTypes.Validator<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined; onResponderReject?: PropTypes.Validator<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined; onResponderMove?: PropTypes.Validator<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined; onResponderRelease?: PropTypes.Validator<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined; onResponderStart?: PropTypes.Validator<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined; onResponderTerminationRequest?: PropTypes.Validator<((event: import("react-native").GestureResponderEvent) => boolean) | undefined> | undefined; onResponderTerminate?: PropTypes.Validator<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined; onStartShouldSetResponderCapture?: PropTypes.Validator<((event: import("react-native").GestureResponderEvent) => boolean) | undefined> | undefined; onMoveShouldSetResponderCapture?: PropTypes.Validator<((event: import("react-native").GestureResponderEvent) => boolean) | undefined> | undefined; onTouchStart?: PropTypes.Validator<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined; onTouchMove?: PropTypes.Validator<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined; onTouchEnd?: PropTypes.Validator<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined; onTouchCancel?: PropTypes.Validator<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined; onTouchEndCapture?: PropTypes.Validator<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined; accessible?: PropTypes.Validator | undefined; accessibilityActions?: PropTypes.Validator[] | undefined> | undefined; accessibilityLabel?: PropTypes.Validator | undefined; accessibilityRole?: PropTypes.Validator<"none" | "button" | "link" | "search" | "image" | "keyboardkey" | "text" | "adjustable" | "imagebutton" | "header" | "summary" | "alert" | "checkbox" | "combobox" | "menu" | "menubar" | "menuitem" | "progressbar" | "radio" | "radiogroup" | "scrollbar" | "spinbutton" | "switch" | "tab" | "tablist" | "timer" | "toolbar" | undefined> | undefined; accessibilityStates?: PropTypes.Validator | undefined; accessibilityState?: PropTypes.Validator | undefined; accessibilityHint?: PropTypes.Validator | undefined; onAccessibilityAction?: PropTypes.Validator<((event: import("react-native").AccessibilityActionEvent) => void) | undefined> | undefined; accessibilityComponentType?: PropTypes.Validator<"none" | "button" | "radiobutton_checked" | "radiobutton_unchecked" | undefined> | undefined; accessibilityLiveRegion?: PropTypes.Validator<"none" | "polite" | "assertive" | undefined> | undefined; importantForAccessibility?: PropTypes.Validator<"auto" | "yes" | "no" | "no-hide-descendants" | undefined> | undefined; accessibilityElementsHidden?: PropTypes.Validator | undefined; accessibilityTraits?: PropTypes.Validator<"none" | "button" | "link" | "search" | "image" | "text" | "adjustable" | "header" | "summary" | "disabled" | "selected" | "plays" | "key" | "frequentUpdates" | "startsMedia" | "allowsDirectInteraction" | "pageTurn" | import("react-native").AccessibilityTrait[] | undefined> | undefined; accessibilityViewIsModal?: PropTypes.Validator | undefined; onAccessibilityTap?: PropTypes.Validator<(() => void) | undefined> | undefined; onMagicTap?: PropTypes.Validator<(() => void) | undefined> | undefined; accessibilityIgnoresInvertColors?: PropTypes.Validator | undefined; }; static defaultProps: CameraProps; static getPermissionsAsync(): Promise; static requestPermissionsAsync(): Promise; _cameraHandle?: number | null; _cameraRef?: React.Component | null; _lastEvents: { [eventName: string]: string; }; _lastEventsTimes: { [eventName: string]: Date; }; takePictureAsync(options?: CameraPictureOptions): Promise; getSupportedRatiosAsync(): Promise; getAvailablePictureSizesAsync(ratio?: string): Promise; recordAsync(options?: CameraRecordingOptions): Promise<{ uri: string; }>; stopRecording(): void; pausePreview(): void; resumePreview(): void; _onCameraReady: () => void; _onMountError: ({ nativeEvent }: { nativeEvent: { message: string; }; }) => void; _onObjectDetected: (callback?: Function | undefined) => ({ nativeEvent }: { nativeEvent: any; }) => void; _setReference: (ref?: React.Component<{}, {}, any> | undefined) => void; render(): JSX.Element; } export declare const Constants: { Type: any; FlashMode: any; AutoFocus: any; WhiteBalance: any; VideoQuality: any; VideoStabilization: any; }, getPermissionsAsync: typeof Camera.getPermissionsAsync, requestPermissionsAsync: typeof Camera.requestPermissionsAsync; export { CameraCapturedPicture, CameraNativeProps, CameraPictureOptions, CameraProps, CameraRecordingOptions, PermissionResponse, PermissionStatus, PermissionExpiration, BarCodeScanningResult, FaceDetectionResult, CameraMountError, };