useImageCapture(): { cleanup: () => void; grabFrame: () => Promise<ImageBitmap>; setOptions: (settings: PhotoSettings) => Promise<void>; startCamera: (options?: CameraOptions) => Promise<void>; stopCamera: () => void; takePhoto: (settings?: PhotoSettings) => Promise<Blob>; get state(): ImageCaptureState; subscribe(callback: (state: ImageCaptureState) => void): () => boolean;} Returns {
cleanup: () => void;
grabFrame: () => Promise<ImageBitmap>;
setOptions: (settings: PhotoSettings) => Promise<void>;
startCamera: (options?: CameraOptions) => Promise<void>;
stopCamera: () => void;
takePhoto: (settings?: PhotoSettings) => Promise<Blob>;
get state(): ImageCaptureState;
subscribe(callback: (state: ImageCaptureState) => void): () => boolean;
}