import type { WebRTCConfig, UseSmartCameraWebRTCResult, CameraFacing } from '../types'; /** * Options for useSmartCameraWebRTC hook */ export interface UseSmartCameraWebRTCOptions extends Omit { /** Initial camera facing. Default: 'front' */ initialCamera?: CameraFacing; /** Callback when streaming state changes */ onStreamingStateChange?: (isStreaming: boolean) => void; /** Callback when an error occurs */ onError?: (error: Error) => void; } /** * Hook for managing WebRTC streaming with SmartCamera * * NOTE: This is a stub implementation. WebRTC functionality is not yet implemented. * The hook provides the interface but does not perform actual streaming. * * @param options - WebRTC configuration options * @returns WebRTC streaming controls and state * * @example * ```tsx * function VideoCall() { * const peerConnection = useRef(new RTCPeerConnection(config)).current; * * const { * videoTrack, * isStreaming, * startStreaming, * stopStreaming, * switchCamera, * } = useSmartCameraWebRTC({ * peerConnection, * mode: 'call', * videoConstraints: { * width: 1280, * height: 720, * frameRate: 30, * }, * }); * * return ( * * *