import * as apid from '../../../../api' ; export interface EncodeRecordedIdIndex { [ recordedId ] : { encodeId : apid . EncodeId ; name : string ; } [ ] ; } export interface EncodeQueueInfo { runningQueue : EncodeInfoItem [ ] ; waitQueue : EncodeInfoItem [ ] ; } export interface EncodeInfoItem { id : apid . EncodeId ; mode : string ; recordedId : apid . RecordedId ; percent ? : number ; log ? : string ; } export default interface IEncodeManageModel { push ( addOption ) : Promise < apid . EncodeId > ; cancel ( encodeId ) : Promise < void > ; getRecordedIndex ( ) : EncodeRecordedIdIndex ; cancelEncodeByRecordedId ( recordedId ) : Promise < void > ; getEncodeInfo ( ) : EncodeQueueInfo ; }