import { PhotoCaptureAppConfig, Image, PixelDimensions, Sight, VehiclePart, VehicleType } from '@monkvision/types'; import { TutorialSteps } from '../../hooks'; import { CaptureMode } from '../../../types'; /** * Props of the PhotoCaptureHUDElements component. */ export interface PhotoCaptureHUDElementsProps extends Pick { /** * The currently selected sight in the PhotoCapture component : the sight that the user needs to capture. */ selectedSight: Sight; /** * The list of sights provided to the PhotoCapture component. */ sights: Sight[]; /** * Array containing the list of sights that the user has already captured. */ sightsTaken: Sight[]; /** * The current mode of the component. */ mode: CaptureMode; /** * The current tutorial step in PhotoCapture component. */ tutorialStep: TutorialSteps | null; /** * Current vehicle parts selected to take a picture of. */ vehicleParts: VehiclePart[]; /** * Callback called when the user presses the Add Damage button. */ onAddDamage: () => void; /** * Callback called when the user selects the parts to take a picture of. */ onAddDamagePartsSelected?: (parts: VehiclePart[]) => void; /** * Callback called when the user cancels the Add Damage mode. */ onCancelAddDamage: () => void; /** * Callback called when the user manually select a new sight. */ onSelectSight: (sight: Sight) => void; /** * Callback called when the user manually selects a sight to retake. */ onRetakeSight: (sight: string) => void; /** * Callback called when the user clicks on the "Validate" button of the Add Damage mode. */ onValidateVehicleParts: () => void; /** * Callback called when the user clicks on both: 'disable' checkbox and 'okay' button. */ onDisableSightGuidelines?: () => void; /** * The effective pixel dimensions of the Camera video stream on the screen. */ previewDimensions: PixelDimensions | null; /** * The error that occurred in the PhotoCapture component. Set this value to `null` if there is no error. */ error?: unknown | null; /** * The current images taken by the user (ignoring retaken pictures etc.). */ images: Image[]; /** * The vehicle type of the inspection. */ vehicleType: VehicleType; /** * Boolean indicating whether the sight guidelines should be displayed. */ showSightGuidelines?: boolean; /** * Callback called when the user clicks on the "help" button in PhotoCapture. */ toggleSightTutorial?: () => void; } /** * Component implementing an HUD displayed on top of the Camera preview during the PhotoCapture process. */ export declare function PhotoCaptureHUDElements(params: PhotoCaptureHUDElementsProps): import("react").JSX.Element | null;