declare namespace ICommon {
export type SupportMediaType =
| "music"
| "album"
| "artist"
| "sheet"
| "lyric";
export type SupportMediaItemBase = {
music: IMusic.IMusicItemBase;
album: IAlbum.IAlbumItemBase;
artist: IArtist.IArtistItemBase;
sheet: IMusic.IMusicSheetItemBase;
lyric: ILyric.ILyricItem;
};
export type IUnique = {
id: string;
[k: string | symbol]: any;
};
export type IMediaBase = {
id: string;
platform: string;
$?: any;
[k: symbol]: any;
[k: string]: any;
};
export type IMediaMeta = {
associatedLrc?: IMediaBase;
downloaded?: boolean;
localPath?: string;
mediaItem?: Partial<IMediaBase>;
lyricOffset?: number;
lrc?: string;
headers?: Record<string, any>;
url?: string;
id?: string;
platform?: string;
qualities?: IMusic.IQuality;
$?: {
local?: {
localLrc?: string;
[k: string]: any;
};
[k: string]: any;
};
[k: string]: any;
[k: symbol]: any;
};
export type WithMusicList<T> = T & {
musicList?: IMusic.IMusicItem[];
};
export type PaginationResponse<T> = {
isEnd?: boolean;
data?: T[];
};
export interface IPoint {
x: number;
y: number;
}
}