import { Podcast, SimplifiedPodcast } from '../stores/class/general/podcast'; import { Playlist, PlaylistAmbianceType } from '../stores/class/general/playlist'; import { ListClassicReturn } from '../stores/class/general/listReturn'; import { Paginable } from './types'; /** * Retrieve playlist data * @param playlistId The ID of the playlist * @return The playlist */ declare function get(playlistId: number): Promise; /** * Retrieve the podcasts defined in the playlist * @param playlistId The ID of the playlist * @return A list of simplified podcasts */ declare function getContent(playlistId: number): Promise>; /** * Retrieve the podcasts defined in the playlist, with all their data * This query is longer, because it also needs to retrieve organisations & * emissions. * @param playlistId The ID of the playlist * @return A list of podcasts */ declare function getContentFull(playlistId: number): Promise>; /** * Sort order for playlists */ declare enum PlaylistSort { SCORE = "SCORE", NAME = "NAME" } /** * Search criterias for playlists */ interface PlaylistSearchOptions extends Paginable { /** Filter on organisations */ organisationId?: string[]; /** Fitler on name */ query?: string; /** Filter on type */ type?: PlaylistAmbianceType; } /** * Search for playlists based on criterias */ declare function search(options?: PlaylistSearchOptions): Promise>; /** * API to manage playlists */ export declare const playlistApi: { get: typeof get; getContent: typeof getContent; getContentFull: typeof getContentFull; search: typeof search; }; export {};