/** * @module OAuth */ import { Request } from '../util'; import OAuth from '../oauth'; import * as YT from '..'; export declare class OAuthPlaylists { #private; oauth: OAuth; constructor(oauth: OAuth, request: Request); /** * Creates a [Playlist](../../Library-Exports/classes/Playlist#). * @param title A title for the playlist. * @param description A description of the playlist. * @param privacy Whether the video is private, public, or unlisted. * @param tags Tags pertaining to the playlist. * @param language The language of the playlist's default title and description. * @param localizations Translated titles and descriptions. */ createPlaylist(title: string, description?: string, privacy?: 'private' | 'public' | 'unlisted', tags?: string[], language?: string, localizations?: { [language: string]: { title: string; description: string; }; }): Promise; /** * Updates a [Playlist](../../Library-Exports/classes/Playlist#). * **If your request does not specify a value for a property that already has a value, * the property's existing value will be deleted.** * @param playlistResolvable The playlist to update. * @param title A title for the playlist. * @param description A description of the playlist. * @param privacy Whether the video is private, public, or unlisted. * @param tags Tags pertaining to the playlist. * @param language The language of the playlist's default title and description. * @param localizations Translated titles and descriptions. */ updatePlaylist(playlistResolvable: YT.PlaylistResolvable, title: string, description?: string, privacy?: 'private' | 'public' | 'unlisted', tags?: string[], language?: string, localizations?: { [language: string]: { title: string; description: string; }; }): Promise; /** * Deletes a [Playlist](../../Library-Exports/classes/Playlist#). * @param playlistResolvable The playlist to delete. */ deletePlaylist(playlistResolvable: YT.PlaylistResolvable): Promise; /** * Adds a [Video](../../Library-Exports/classes/Video#) to a [Playlist](../../Library-Exports/classes/Playlist#). * @param playlistResolvable The playlist to add the video to. * @param videoResolvable The video to add to the playlist. * @param position The position to add the video in. Defaults to the end. * @param note A user-generated note on the video. * @returns A partial video object. */ addPlaylistItem(playlistResolvable: YT.PlaylistResolvable, videoResolvable: YT.VideoResolvable, position?: number, note?: string): Promise; /** * Edits a playlist item. * **If your request does not specify a value for a property that already has a value, * the property's existing value will be deleted.** * @param id The ID of the playlist item to edit. * @param playlistResolvable The playlist that the video is in. * @param videoResolvable The video that's in the playlist. * @param position The position to change the playlist item's to. * @param note The note to change the playlist item's to. * @returns A partial video object. */ updatePlaylistItem(id: string, playlistResolvable: YT.PlaylistResolvable, videoResolvable: YT.VideoResolvable, position?: number, note?: string): Promise; /** * Deletes a playlist item. * @param id The ID of the playlist item to delete. */ deletePlaylistItem(id: string): Promise; }