import type { CameraOutput } from 'react-native-vision-camera'; import type { FaceScannerOutputOptions } from '../specs/FaceScannerFactory.nitro'; /** * Use a Face Scanner {@linkcode CameraOutput}. * * The Face Scanner {@linkcode CameraOutput} can be * attached to a {@linkcode CameraSession} or {@linkcode Camera} * component. * * @example * Attach to a `` component: * ```tsx * const device = ... * const scannerOutput = useFaceScannerOutput({ * onFaceScanned(faces) { * console.log(`Detected ${faces.length} face(s)`) * }, * onError(error) { * console.error(`Failed to detect faces!`, error) * } * }) * * return ( * * ) * ``` * @example * Attach to a `CameraSession`: * ```ts * const device = ... * const scannerOutput = useFaceScannerOutput({ * onFaceScanned(faces) { * console.log(`Detected ${faces.length} face(s)`) * }, * onError(error) { * console.error(`Failed to detect faces!`, error) * } * }) * const camera = useCamera({ * isActive: true, * device: device, * outputs: [scannerOutput] * }) * ``` */ export declare function useFaceScannerOutput({ onFaceScanned, onError, outputResolution, ...options }: FaceScannerOutputOptions): CameraOutput; //# sourceMappingURL=useFaceScannerOutput.d.ts.map