import * as apid from '../../../../../api' ; import IStreamBaseModel , { LiveStreamInfo , RecordedStreamInfo } from '../base/IStreamBaseModel' ; export interface StreamInfoWithStreamId { streamId : apid . StreamId ; info : LiveStreamInfo | RecordedStreamInfo ; } export default interface IStreamManageModel { start ( stream ) : Promise < apid . StreamId > ; stop ( streamId , isForce ? ) : Promise < void > ; stopAll ( ) : Promise < void > ; keep ( streamId ) : void ; getStreamInfo ( streamId ) : LiveStreamInfo | RecordedStreamInfo ; getStreamInfos ( ) : StreamInfoWithStreamId [ ] ; }