import { Publisher , PublisherProperties , Connection } from 'openvidu-browser' ; import { Signal } from '../../types/singal-type' ; export interface IOpenViduWebRTC { initPublisher ( targetElement , properties ) : Publisher ; initPublisherAsync ( targetElement , properties ) : Promise < Publisher > ; initializeWebcamSession ( ) : void ; initializeScreenSession ( ) : void ; connectWebcamSession ( token ) : Promise < any > ; disconnectWebcamSession ( ) : void ; connectScreenSession ( token ) : Promise < any > ; disconnectScreenSession ( ) : void ; destroyWebcamPublisher ( ) : void ; destroyScreenPublisher ( ) : void ; publishWebcamPublisher ( ) : Promise < any > ; unpublishWebcamPublisher ( ) : void ; publishScreenPublisher ( ) : Promise < any > ; unpublishScreenPublisher ( ) : void ; publishWebcamVideo ( active ) : void ; publishWebcamAudio ( active ) : void ; publishScreenAudio ( active ) : void ; replaceTrack ( videoSource , audioSource , mirror ) : Promise < any > ; sendSignal ( type , connection ? , data ? ) : void ; createPublisherProperties ( videoSource , audioSource , publishVideo , publishAudio , mirror ) : PublisherProperties ; stopVideoTracks ( mediaStream ) : void ; stopAudioTracks ( mediaStream ) : void ; }