import { SpotifyAlbum, SpotifyArtist, SpotifyTrack, SpotifyPlaylist, SpotifyPodcast, SpotifyEpisode } from './utils/types.js'; import { SpotifyTypes } from './utils/rawtypes.js'; import Librespot from './index.js'; type SpotifySectionItem = SpotifyPlaylist | SpotifyAlbum | SpotifyArtist | SpotifyPodcast | SpotifyEpisode; interface SpotifySection { type: string; title?: string; items: SpotifySectionItem[]; } interface SpotifySearch { artists?: SpotifyArtist[]; albums?: SpotifyAlbum[]; tracks?: SpotifyTrack[]; playlists?: SpotifyPlaylist[]; podcasts?: SpotifyPodcast[]; episodes?: SpotifyEpisode[]; } export default class LibrespotBrowse { #private; constructor(librespot: Librespot); search(query: string, types?: SpotifyTypes[]): Promise; featuredPlaylists(): Promise<{ message: string; playlists: SpotifyPlaylist[]; }>; home(timezone?: string): Promise<{ message: string; sections: SpotifySection[]; }>; } export {};