import type { Face, FaceDetectionOptions, UseFaceDetectionResult } from '../types'; /** * Options for useFaceDetection hook */ export interface UseFaceDetectionOptions extends FaceDetectionOptions { /** Whether detection is enabled. Default: true */ enabled?: boolean; /** Maximum number of faces to track. Default: 5 */ maxFaces?: number; /** Callback when faces change */ onFacesChanged?: (faces: Face[]) => void; } /** * Hook for managing face detection state * * Use this hook to get face detection results outside of the SmartCamera component. * * @param options - Face detection options * @returns Face detection state * * @example * ```tsx * function FaceTracker() { * const { faces, isDetecting } = useFaceDetection({ * performanceMode: 'fast', * classificationMode: 'all', * onFacesChanged: (faces) => { * console.log('Detected faces:', faces.length); * }, * }); * * return ( * * Faces detected: {faces.length} * {faces.map((face, i) => ( * * Smiling: {(face.smilingProbability ?? 0) * 100}% * * ))} * * ); * } * ``` */ export declare function useFaceDetection(options?: UseFaceDetectionOptions): UseFaceDetectionResult; //# sourceMappingURL=useFaceDetection.d.ts.map