import Vnmf from '../../index' declare module '../../index' { namespace reserveChannelsLive { interface Option { /** Forecast id,Through [getChannelsLiveNoticeInfo](./getChannelsLiveNoticeInfo) Interface Acquisition */ noticeId: string } } namespace openChannelsUserProfile { interface Option { /** Video number id */ finderUserName: string /** Interface call to the end of echo function(Call successfully、Any failure will be enforced.) */ complete?: (res: VnmfGeneral.CallbackResult) => void /** Interface call failed echo function */ fail?: (res: VnmfGeneral.CallbackResult) => void /** Interface calls a successful echo function */ success?: (result: VnmfGeneral.CallbackResult) => void } } namespace openChannelsLive { interface Option { /** Video number id,By“sph”At the beginning.id,It's available at the video number assistant. */ finderUserName: string /** Live feedId,Through getChannelsLiveInfo Interface Acquisition */ feedId?: string /** Live nonceId,Through getChannelsLiveInfo Interface Acquisition */ nonceId?: string /** Interface call to the end of echo function(Call successfully、Any failure will be enforced.) */ complete?: (res: VnmfGeneral.CallbackResult) => void /** Interface call failed echo function */ fail?: (res: VnmfGeneral.CallbackResult) => void /** Interface calls a successful echo function */ success?: (result: VnmfGeneral.CallbackResult) => void } } namespace openChannelsEvent { interface Option { /** Video number id,By“sph”At the beginning.id,It's available at the video number assistant. */ finderUserName: string /** Activities id */ eventId: string /** Interface call to the end of echo function(Call successfully、Any failure will be enforced.) */ complete?: (res: VnmfGeneral.CallbackResult) => void /** Interface call failed echo function */ fail?: (res: VnmfGeneral.CallbackResult) => void /** Interface calls a successful echo function */ success?: (result: VnmfGeneral.CallbackResult) => void } } namespace openChannelsActivity { interface Option { /** Video number id,By“sph”At the beginning.id,It's available at the video number assistant. */ finderUserName: string /** Video feedId */ feedId: string /** Interface call to the end of echo function(Call successfully、Any failure will be enforced.) */ complete?: (res: VnmfGeneral.CallbackResult) => void /** Interface call failed echo function */ fail?: (res: VnmfGeneral.CallbackResult) => void /** Interface calls a successful echo function */ success?: (result: VnmfGeneral.CallbackResult) => void } } namespace getChannelsLiveNoticeInfo { interface Option { /** Video number id,By“sph”At the beginning.id,It's available at the video number assistant. */ finderUserName: string /** Interface call to the end of echo function(Call successfully、Any failure will be enforced.) */ complete?: (res: VnmfGeneral.CallbackResult) => void /** Interface call failed echo function */ fail?: (res: VnmfGeneral.CallbackResult) => void /** Interface calls a successful echo function */ success?: (result: SuccessCallbackResult) => void } interface SuccessCallbackResult extends VnmfGeneral.CallbackResult { /** Forecast nonceId */ nonceId: string /** Synchronising folder:0Available 1Cancel 2Used */ status: keyof Status | number /** _Other Organiser */ startTime: string /** Live cover. */ headUrl: string /** Video No. Nickname */ nickname: string /** Can you make an appointment? */ reservable: boolean } interface Status { /** Available */ 0 /** Cancel */ 1 /** Used */ 2 } } namespace getChannelsLiveInfo { interface Option { /** Video number id,By“sph”At the beginning.id,It's available at the video number assistant. */ finderUserName: string /** Interface call to the end of echo function(Call successfully、Any failure will be enforced.) */ complete?: (res: VnmfGeneral.CallbackResult) => void /** Interface call failed echo function */ fail?: (res: VnmfGeneral.CallbackResult) => void /** Interface calls a successful echo function */ success?: (result: SuccessCallbackResult) => void } interface SuccessCallbackResult extends VnmfGeneral.CallbackResult { /** Live feedId */ feedId: string /** Live nonceId */ nonceId: string /** Live Subject */ description: string /** Live status,2We're on the air.,3The live air is over. */ status: keyof Status | number /** The first image of the video number. */ headUrl: string /** Video No. Nickname */ nickname: string } interface Status { /** We're on the air. */ 2 /** The live air is over. */ 3 } } interface VnmfStatic { /** Make an appointment to live the video number. * @supported weapp * @see https://developers.weixin.qq.com/miniprogram/dev/api/open-api/channels/wx.reserveChannelsLive.html */ reserveChannelsLive(option?: reserveChannelsLive.Option): void /** Open the video number homepage * @supported weapp * @see https://developers.weixin.qq.com/miniprogram/dev/api/open-api/channels/wx.openChannelsUserProfile.html */ openChannelsUserProfile(option?: openChannelsUserProfile.Option): Promise /** Turn on the video number live. * @supported weapp * @see https://developers.weixin.qq.com/miniprogram/dev/api/open-api/channels/wx.openChannelsLive.html */ openChannelsLive(option?: openChannelsLive.Option): Promise /** Open video number active page * @supported weapp * @see https://developers.weixin.qq.com/miniprogram/dev/api/open-api/channels/wx.openChannelsEvent.html */ openChannelsEvent(option?: openChannelsEvent.Option): Promise /** Turn on the video number. * @supported weapp * @see https://developers.weixin.qq.com/miniprogram/dev/api/open-api/channels/wx.openChannelsActivity.html */ openChannelsActivity(option?: openChannelsActivity.Option): Promise /** Get a live video feed. * @supported weapp * @see https://developers.weixin.qq.com/miniprogram/dev/api/open-api/channels/wx.getChannelsLiveNoticeInfo.html */ getChannelsLiveNoticeInfo(option?: getChannelsLiveNoticeInfo.Option): Promise /** Get live video number information * @supported weapp * @see https://developers.weixin.qq.com/miniprogram/dev/api/open-api/channels/wx.getChannelsLiveInfo.html */ getChannelsLiveInfo(option?: getChannelsLiveInfo.Option): Promise } }