import type { CameraCaptureError } from './CameraError';
import type { TemporaryFile } from './TemporaryFile';
export type VideoFileType = 'mov' | 'avci' | 'm4v' | 'mp4';
export interface RecordVideoOptions {
/**
* Set the video flash mode. Natively, this just enables the torch while recording.
*/
flash?: 'on' | 'off' | 'auto';
* Sets the file type to use for the Video Recording.
* @default "mov"
fileType?: VideoFileType;
* Called when there was an unexpected runtime error while recording the video.
onRecordingError: (error: CameraCaptureError) => void;
* Called when the recording has been successfully saved to file.
onRecordingFinished: (video: VideoFile) => void;
}
* Represents a Video taken by the Camera written to the local filesystem.
*
* Related: {@linkcode Camera.startRecording | Camera.startRecording()}, {@linkcode Camera.stopRecording | Camera.stopRecording()}
export interface VideoFile extends TemporaryFile {
* Represents the duration of the video, in seconds.
* This is `undefined` on Android, see [issue #77](https://github.com/cuvent/react-native-vision-camera/issues/77)
* @platform iOS
duration?: number;