import { SoundStateChangeHandler } from './sound-detector'; export declare class RNSpeechDetector { private readonly pc1; private readonly pc2; private audioStream; private externalAudioStream; private isStopped; constructor(externalAudioStream?: MediaStream); /** * Starts the speech detection. */ start(onSoundDetectedStateChanged: SoundStateChangeHandler): Promise<() => void>; /** * Stops the speech detection and releases all allocated resources. */ private stop; /** * Public method that detects the audio levels and returns the status. */ private onSpeakingDetectedStateChange; private cleanupAudioStream; private forwardIceCandidate; }