export type FaceDetectionConfig = { showFaceLandmarks?: boolean; interval?: number; }; export type FaceDetectionCallback = (processedStream: MediaStream) => void; export class VideoSDKFaceDetectionProcessor { /** * Starts the face detection processor. * @param {Object} params - Parameters for starting the processor. * @param {MediaStream} params.stream - The local camera (or screen) media stream. * @param {FaceDetectionConfig} [params.options] - Configuration options for face detection. * @param {FaceDetectionCallback} params.callback - Callback function that receives the processed media stream. * @returns {Promise} - The transformed media stream. */ start: ({ stream, options, callback }: { stream: MediaStream; options?: FaceDetectionConfig; callback: FaceDetectionCallback; }) => Promise; processorRunning: boolean; /** * Stops the face detection processor. */ stop: () => void; }