import React from 'react'; import type { Frame } from 'react-native-vision-camera'; import type { Crop, RotationDegree } from '../helpers/documentDetector'; export type CropToBase64 = ( frame: Frame, crop: Crop, rotation: RotationDegree ) => string | undefined; export class DebugHelper { DEBUG_CROP_SIZE = 160; cropToBase64: CropToBase64 | undefined; } export const DebugContext = React.createContext(new DebugHelper());