1declare namespace ICommon { 2 /** 支持搜索的媒体类型 */ 3 export type SupportMediaType = 'music' | 'album' | 'artist'; 4 5 /** 媒体定义 */ 6 export type SupportMediaItemBase = { 7 music: IMusic.IMusicItemBase; 8 album: IAlbum.IAlbumItemBase; 9 artist: IArtist.IArtistItemBase; 10 }; 11 12 export type IMediaBase = { 13 id: string; 14 platform: string; 15 $?: any, 16 [k: symbol]: any; 17 [k: string]: any; 18 }; 19 20 /** 一些额外信息 */ 21 export type IMediaMeta = { 22 lrc?: string; 23 associatedLrc?: IMediaBase; 24 headers?: Record<string, any>; 25 url?: string; 26 id?: string; 27 platform?: string; 28 $?: { 29 local?: { 30 localLrc?: string; 31 [k: string]: any 32 } 33 [k: string]: any 34 }, 35 [k: string]: any; 36 [k: symbol]: any; 37 }; 38} 39