import { DeviceRotation, VideoCaptureAppConfig } from '@monkvision/types'; import { FastMovementType } from './fastMovementsDetection'; /** * Params accepted by the useFastMovementsDetection hook. */ export interface UseFastMovementsDetectionParams extends Required> { /** * Boolean indicating if the video is currently recording or not. */ isRecording: boolean; } /** * Handle used to manage the fast movements warning displayed on the screen to the user. */ export interface FastMovementsDetectionHandle { /** * Event listener for device rotation updates. */ onDeviceOrientationEvent: (rotation: DeviceRotation) => void; /** * The type of fast movements warning that should be displayed to the user. If this value is null, no warning should * be displayed. */ fastMovementsWarning: FastMovementType | null; /** * Callback called when the user dismisses the currently displayed fast movements warning. */ onWarningDismiss: () => void; /** * Callback to reset the detection baseline. */ resetDetection: () => void; } /** * Custom hook used to display warnings to the user when they walk too fast around the car or shake their phone too * much. */ export declare function useFastMovementsDetection({ isRecording, enableFastWalkingWarning, enablePhoneShakingWarning, fastWalkingWarningCooldown, phoneShakingWarningCooldown, }: UseFastMovementsDetectionParams): FastMovementsDetectionHandle;