/** * Format Song Response * @param {JSON} resp json response * @param {boolean} lyrics true or false * @returns Data in formatted form */ interface IResponse { id: string; media_preview_url: string; primary_artists: string; singers: string; starring: string; has_lyrics: string; } /** * Format Album Response * @param {JSON} resp json response * @param {boolean} lyrics true or false * @returns Data in formatted form */ interface IResponseAlbum { id?: string; image?: string; primary_artists?: string; songs?: IResponse[]; } /** * Format Playlist Response * @param {JSON} resp json response * @param {boolean} lyrics true or false * @returns Data in formatted form */ interface IResponsePlaylist { listid?: string; listname: string; songs: IResponse[]; } declare const sm: { songResponse: (resp: IResponse, lyrics: boolean) => Promise; albumResponse: (resp: IResponseAlbum, lyrics: boolean) => Promise; playListResponse: (resp: IResponsePlaylist, lyrics: boolean) => Promise; }; export default sm;