/**
* @module Uploads
*/
///
import { GConstructor, Mixin } from './.mixin.helper';
import * as ut from './uploads.types';
export declare type UploadsMixin = Mixin;
export declare const UploadsMixin: ;
getLibrarySongs(options?: {
limit?: number | undefined;
validateResponse?: boolean | undefined;
order?: import("./library.types").Order | undefined;
} | undefined): Promise;
getLibraryAlbums(options?: {
limit?: number | undefined;
order?: import("./library.types").Order | undefined;
} | undefined): Promise;
getLibraryArtists(options?: {
limit?: number | undefined;
order?: import("./library.types").Order | undefined;
} | undefined): Promise;
getLibrarySubscriptions(options?: {
limit?: number | undefined;
order?: import("./library.types").Order | undefined;
} | undefined): Promise;
getLikedSongs(limit?: number): Promise>;
getHistory(): Promise;
removeHistoryItems(feedbackTokens: any[]): Promise>;
rateSong(videoId: string, rating?: import("./library.types").Rating): Promise>;
editSongLibraryStatus(feedbackTokens: string[]): Promise>; /**
* Deletes a previously uploaded song or album.
* @param entityId The entity id of the uploaded song or album,
* e.g. retrieved from `getLibraryUploadSongs`
* @return Status String or error.
*/
ratePlaylist(playlistId: string, rating?: import("./library.types").Rating): Promise>;
subscribeArtists(channelIds: string[]): Promise>;
unsubscribeArtists(channelIds: string[]): Promise>;
getPlaylist(playlistId: string, limit?: number): Promise;
getPlaylistSuggestions(suggestionsToken: string): Promise>;
createPlaylist(title: string, options?: {
description?: string | undefined;
privacyStatus?: import("./playlists.types").PrivacyStatus | undefined;
videoIds?: string[] | undefined;
sourcePlaylist?: string | undefined;
} | undefined): Promise>;
createPlaylist(title: string, description?: string | undefined, options?: {
privacyStatus?: import("./playlists.types").PrivacyStatus | undefined;
videoIds?: string[] | undefined;
sourcePlaylist?: string | undefined;
} | undefined): Promise>;
editPlaylist(playlistId: string, options: {
title?: string | undefined;
description?: string | null | undefined;
privacyStatus?: import("./playlists.types").PrivacyStatus | undefined;
moveItem?: [string, string] | undefined;
addPlaylistId?: string | undefined;
}): Promise>;
deletePlaylist(playlistId: string): Promise>;
addPlaylistItems(playlistId: string, options: {
videoIds: string[];
sourcePlaylist: string;
duplicates: boolean;
}): Promise;
removePlaylistItems(playlistId: string, videos: Record[]): Promise;
getMoodCategories(): Promise;
getMoodPlaylists(params: string): Promise;
getCharts(country?: string): Promise>;
getWatchPlaylist(watchPlaylist: import("./watch.types").getWatchPlaylistOptions): Promise;
getWatchPlaylistShuffle(options: import("./watch.types").getWatchPlaylistShuffleOptions): Promise>;
getHome(limit?: number): Promise;
search(query: string, options?: {
filter?: undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<((Omit<{
category: "Videos";
resultType: "video";
videoId: string;
title: string;
artists: {
name: string;
id: string;
}[];
views?: string | undefined;
duration: string | null;
duration_seconds: number;
}, "category"> & {
category: "Videos" | "Top result";
thumbnails: import("../types").thumbnails;
}) | (Omit<{
category: "Songs";
resultType: "song";
videoId: string;
title: string;
artists: {
name: string;
id: string;
}[];
album: {
name: string;
id: string;
} | null;
duration: string | null;
duration_seconds: number;
isExplicit: boolean;
feedbackTokens: {
add: any;
remove: any;
};
}, "category"> & {
category: "Songs" | "Top result";
thumbnails: import("../types").thumbnails;
}) | (Omit<{
category: "Albums";
resultType: "album";
browseId: string;
title: string;
type: "Album";
artist: string;
year: string | null;
isExplicit: boolean;
}, "category"> & {
category: "Albums" | "Top result";
thumbnails: import("../types").thumbnails;
}) | (Omit<{
category: "Community playlists";
resultType: "playlist";
browseId: string;
title: string;
author: string;
itemCount: string;
}, "category"> & {
category: "Community playlists" | "Top result";
thumbnails: import("../types").thumbnails;
}) | (Omit<{
category: "Featured playlists";
resultType: "playlist";
browseId: string;
title: string;
author: string;
itemCount: string;
}, "category"> & {
category: "Featured playlists" | "Top result";
thumbnails: import("../types").thumbnails;
}))[]>;
search(query: string, options?: {
filter?: "songs" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<(Omit<{
category: "Songs";
resultType: "song";
videoId: string;
title: string;
artists: {
name: string;
id: string;
}[];
album: {
name: string;
id: string;
} | null;
duration: string | null;
duration_seconds: number;
isExplicit: boolean;
feedbackTokens: {
add: any;
remove: any;
};
}, "category"> & {
category: "Songs" | "Top result";
thumbnails: import("../types").thumbnails;
})[]>;
search(query: string, options?: {
filter?: "videos" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<(Omit<{
category: "Videos";
resultType: "video";
videoId: string;
title: string;
artists: {
name: string;
id: string;
}[];
views?: string | undefined;
duration: string | null;
duration_seconds: number;
}, "category"> & {
category: "Videos" | "Top result";
thumbnails: import("../types").thumbnails;
})[]>;
search(query: string, options?: {
filter?: "albums" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<(Omit<{
category: "Albums";
resultType: "album";
browseId: string;
title: string;
type: "Album";
artist: string;
year: string | null;
isExplicit: boolean;
}, "category"> & {
category: "Albums" | "Top result";
thumbnails: import("../types").thumbnails;
})[]>;
search(query: string, options?: {
filter?: "artists" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<(Omit<{
category: "Artists";
resultType: "artist";
browseId: string;
artist: string;
shuffleId: string;
radioId: string;
}, "category"> & {
category: "Artists" | "Top result";
thumbnails: import("../types").thumbnails;
})[]>;
search(query: string, options?: {
filter?: "playlists" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<((Omit<{
category: "Community playlists";
resultType: "playlist";
browseId: string;
title: string;
author: string;
itemCount: string;
}, "category"> & {
category: "Community playlists" | "Top result";
thumbnails: import("../types").thumbnails;
}) | (Omit<{
category: "Featured playlists";
resultType: "playlist";
browseId: string;
title: string;
author: string;
itemCount: string;
}, "category"> & {
category: "Featured playlists" | "Top result";
thumbnails: import("../types").thumbnails;
}))[]>;
search(query: string, options?: {
filter?: "community_playlists" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<(Omit<{
category: "Community playlists";
resultType: "playlist";
browseId: string;
title: string;
author: string;
itemCount: string;
}, "category"> & {
category: "Community playlists" | "Top result";
thumbnails: import("../types").thumbnails;
})[]>;
search(query: string, options?: {
filter?: "featured_playlists" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<(Omit<{
category: "Featured playlists";
resultType: "playlist";
browseId: string;
title: string;
author: string;
itemCount: string;
}, "category"> & {
category: "Featured playlists" | "Top result";
thumbnails: import("../types").thumbnails;
})[]>;
search(query: string, options?: {
filter?: "uploads" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise;
getArtist(channelId: string): Promise;
getArtistAlbums(channelId: string, params: string): Promise;
getUser(channelId: string): Promise;
getUserPlaylists(channelId: string, params: string): Promise;
getAlbumBrowseId(audioPlaylistId: `OLAK5uy_${string}`): Promise<`MPREb_${string}`>;
getAlbum(browseId: string): Promise;
getSong(videoId: string, signatureTimestamp?: number | undefined): Promise>;
getLyrics(browseId: string | null | undefined): Promise;
getBaseJSUrl(): Promise;
getSignatureTimestamp(url?: string | undefined): Promise;
"__#2@#auth": string | null;
_httpsAgent: import("https").Agent | undefined;
_proxies?: false | import("axios").AxiosProxyConfig | undefined;
_headers: import("../types").Headers;
_context: any;
"__#2@#language": string | undefined;
_parser: import("../parsers/browsing").Parser;
_sapisid: any;
_sendRequest>(endpoint: string, body: Record, additionalParams?: string): Promise;
_sendGetRequest(url: string, params?: Record | undefined): Promise;
checkAuth(): any | null;
_checkAuth(): void;
getAuth(): string | null;
changeLanguage(language: string): Promise;
getLanguage(): string | undefined;
getProxy(): boolean | import("axios").AxiosProxyConfig | undefined;
} & {
getPlaylist(playlistId: string, limit?: number): Promise;
getPlaylistSuggestions(suggestionsToken: string): Promise>;
createPlaylist(title: string, options?: {
description?: string | undefined;
privacyStatus?: import("./playlists.types").PrivacyStatus | undefined;
videoIds?: string[] | undefined;
sourcePlaylist?: string | undefined;
} | undefined): Promise>;
createPlaylist(title: string, description?: string | undefined, options?: {
privacyStatus?: import("./playlists.types").PrivacyStatus | undefined;
videoIds?: string[] | undefined;
sourcePlaylist?: string | undefined;
} | undefined): Promise>;
editPlaylist(playlistId: string, options: {
title?: string | undefined;
description?: string | null | undefined;
privacyStatus?: import("./playlists.types").PrivacyStatus | undefined;
moveItem?: [string, string] | undefined;
addPlaylistId?: string | undefined;
}): Promise>;
deletePlaylist(playlistId: string): Promise>;
addPlaylistItems(playlistId: string, options: {
videoIds: string[];
sourcePlaylist: string;
duplicates: boolean;
}): Promise;
removePlaylistItems(playlistId: string, videos: Record[]): Promise;
getMoodCategories(): Promise;
getMoodPlaylists(params: string): Promise;
getCharts(country?: string): Promise>;
getWatchPlaylist(watchPlaylist: import("./watch.types").getWatchPlaylistOptions): Promise;
getWatchPlaylistShuffle(options: import("./watch.types").getWatchPlaylistShuffleOptions): Promise>;
getHome(limit?: number): Promise;
search(query: string, options?: {
filter?: undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<((Omit<{
category: "Videos";
resultType: "video";
videoId: string;
title: string;
artists: {
name: string;
id: string;
}[];
views?: string | undefined;
duration: string | null;
duration_seconds: number;
}, "category"> & {
category: "Videos" | "Top result";
thumbnails: import("../types").thumbnails;
}) | (Omit<{
category: "Songs";
resultType: "song";
videoId: string;
title: string;
artists: {
name: string;
id: string;
}[];
album: {
name: string;
id: string;
} | null;
duration: string | null;
duration_seconds: number;
isExplicit: boolean;
feedbackTokens: {
add: any;
remove: any;
};
}, "category"> & {
category: "Songs" | "Top result";
thumbnails: import("../types").thumbnails;
}) | (Omit<{
category: "Albums";
resultType: "album";
browseId: string;
title: string;
type: "Album";
artist: string;
year: string | null;
isExplicit: boolean;
}, "category"> & {
category: "Albums" | "Top result";
thumbnails: import("../types").thumbnails;
}) | (Omit<{
category: "Community playlists";
resultType: "playlist";
browseId: string;
title: string;
author: string;
itemCount: string;
}, "category"> & {
category: "Community playlists" | "Top result";
thumbnails: import("../types").thumbnails;
}) | (Omit<{
category: "Featured playlists";
resultType: "playlist";
browseId: string;
title: string;
author: string;
itemCount: string;
}, "category"> & {
category: "Featured playlists" | "Top result";
thumbnails: import("../types").thumbnails;
}))[]>;
search(query: string, options?: {
filter?: "songs" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<(Omit<{
category: "Songs";
resultType: "song";
videoId: string;
title: string;
artists: {
name: string;
id: string;
}[];
album: {
name: string;
id: string;
} | null;
duration: string | null;
duration_seconds: number;
isExplicit: boolean;
feedbackTokens: {
add: any;
remove: any;
};
}, "category"> & {
category: "Songs" | "Top result";
thumbnails: import("../types").thumbnails;
})[]>;
search(query: string, options?: {
filter?: "videos" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<(Omit<{
category: "Videos";
resultType: "video";
videoId: string;
title: string;
artists: {
name: string;
id: string;
}[];
views?: string | undefined;
duration: string | null;
duration_seconds: number;
}, "category"> & {
category: "Videos" | "Top result";
thumbnails: import("../types").thumbnails;
})[]>;
search(query: string, options?: {
filter?: "albums" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<(Omit<{
category: "Albums";
resultType: "album";
browseId: string;
title: string;
type: "Album";
artist: string;
year: string | null;
isExplicit: boolean;
}, "category"> & {
category: "Albums" | "Top result";
thumbnails: import("../types").thumbnails;
})[]>;
search(query: string, options?: {
filter?: "artists" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<(Omit<{
category: "Artists";
resultType: "artist";
browseId: string;
artist: string;
shuffleId: string;
radioId: string;
}, "category"> & {
category: "Artists" | "Top result";
thumbnails: import("../types").thumbnails;
})[]>;
search(query: string, options?: {
filter?: "playlists" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<((Omit<{
category: "Community playlists";
resultType: "playlist";
browseId: string;
title: string;
author: string;
itemCount: string;
}, "category"> & {
category: "Community playlists" | "Top result";
thumbnails: import("../types").thumbnails;
}) | (Omit<{
category: "Featured playlists";
resultType: "playlist";
browseId: string;
title: string;
author: string;
itemCount: string;
}, "category"> & {
category: "Featured playlists" | "Top result";
thumbnails: import("../types").thumbnails;
}))[]>;
search(query: string, options?: {
filter?: "community_playlists" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<(Omit<{
category: "Community playlists";
resultType: "playlist";
browseId: string;
title: string;
author: string;
itemCount: string;
}, "category"> & {
category: "Community playlists" | "Top result";
thumbnails: import("../types").thumbnails;
})[]>;
search(query: string, options?: {
filter?: "featured_playlists" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<(Omit<{
category: "Featured playlists";
resultType: "playlist";
browseId: string;
title: string;
author: string;
itemCount: string;
}, "category"> & {
category: "Featured playlists" | "Top result";
thumbnails: import("../types").thumbnails;
})[]>;
search(query: string, options?: {
filter?: "uploads" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise;
getArtist(channelId: string): Promise;
getArtistAlbums(channelId: string, params: string): Promise;
getUser(channelId: string): Promise;
getUserPlaylists(channelId: string, params: string): Promise;
getAlbumBrowseId(audioPlaylistId: `OLAK5uy_${string}`): Promise<`MPREb_${string}`>;
getAlbum(browseId: string): Promise;
getSong(videoId: string, signatureTimestamp?: number | undefined): Promise>;
getLyrics(browseId: string | null | undefined): Promise;
getBaseJSUrl(): Promise;
getSignatureTimestamp(url?: string | undefined): Promise;
"__#2@#auth": string | null;
_httpsAgent: import("https").Agent | undefined;
_proxies?: false | import("axios").AxiosProxyConfig | undefined;
_headers: import("../types").Headers;
_context: any;
"__#2@#language": string | undefined;
_parser: import("../parsers/browsing").Parser;
_sapisid: any;
_sendRequest>(endpoint: string, body: Record, additionalParams?: string): Promise;
_sendGetRequest(url: string, params?: Record | undefined): Promise;
checkAuth(): any | null;
_checkAuth(): void;
getAuth(): string | null;
changeLanguage(language: string): Promise;
getLanguage(): string | undefined;
getProxy(): boolean | import("axios").AxiosProxyConfig | undefined;
} & {
getMoodCategories(): Promise;
getMoodPlaylists(params: string): Promise;
getCharts(country?: string): Promise>;
getWatchPlaylist(watchPlaylist: import("./watch.types").getWatchPlaylistOptions): Promise;
getWatchPlaylistShuffle(options: import("./watch.types").getWatchPlaylistShuffleOptions): Promise>;
getHome(limit?: number): Promise;
search(query: string, options?: {
filter?: undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<((Omit<{
category: "Videos";
resultType: "video";
videoId: string;
title: string;
artists: {
name: string;
id: string;
}[];
views?: string | undefined;
duration: string | null;
duration_seconds: number;
}, "category"> & {
category: "Videos" | "Top result";
thumbnails: import("../types").thumbnails;
}) | (Omit<{
category: "Songs";
resultType: "song";
videoId: string;
title: string;
artists: {
name: string;
id: string;
}[];
album: {
name: string;
id: string;
} | null;
duration: string | null;
duration_seconds: number;
isExplicit: boolean;
feedbackTokens: {
add: any;
remove: any;
};
}, "category"> & {
category: "Songs" | "Top result";
thumbnails: import("../types").thumbnails;
}) | (Omit<{
category: "Albums";
resultType: "album";
browseId: string;
title: string;
type: "Album";
artist: string;
year: string | null;
isExplicit: boolean;
}, "category"> & {
category: "Albums" | "Top result";
thumbnails: import("../types").thumbnails;
}) | (Omit<{
category: "Community playlists";
resultType: "playlist";
browseId: string;
title: string;
author: string;
itemCount: string;
}, "category"> & {
category: "Community playlists" | "Top result";
thumbnails: import("../types").thumbnails;
}) | (Omit<{
category: "Featured playlists";
resultType: "playlist";
browseId: string;
title: string;
author: string;
itemCount: string;
}, "category"> & {
category: "Featured playlists" | "Top result";
thumbnails: import("../types").thumbnails;
}))[]>;
search(query: string, options?: {
filter?: "songs" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<(Omit<{
category: "Songs";
resultType: "song";
videoId: string;
title: string;
artists: {
name: string;
id: string;
}[];
album: {
name: string;
id: string;
} | null;
duration: string | null;
duration_seconds: number;
isExplicit: boolean;
feedbackTokens: {
add: any;
remove: any;
};
}, "category"> & {
category: "Songs" | "Top result";
thumbnails: import("../types").thumbnails;
})[]>;
search(query: string, options?: {
filter?: "videos" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<(Omit<{
category: "Videos";
resultType: "video";
videoId: string;
title: string;
artists: {
name: string;
id: string;
}[];
views?: string | undefined;
duration: string | null;
duration_seconds: number;
}, "category"> & {
category: "Videos" | "Top result";
thumbnails: import("../types").thumbnails;
})[]>;
search(query: string, options?: {
filter?: "albums" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<(Omit<{
category: "Albums";
resultType: "album";
browseId: string;
title: string;
type: "Album";
artist: string;
year: string | null;
isExplicit: boolean;
}, "category"> & {
category: "Albums" | "Top result";
thumbnails: import("../types").thumbnails;
})[]>;
search(query: string, options?: {
filter?: "artists" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<(Omit<{
category: "Artists";
resultType: "artist";
browseId: string;
artist: string;
shuffleId: string;
radioId: string;
}, "category"> & {
category: "Artists" | "Top result";
thumbnails: import("../types").thumbnails;
})[]>;
search(query: string, options?: {
filter?: "playlists" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<((Omit<{
category: "Community playlists";
resultType: "playlist";
browseId: string;
title: string;
author: string;
itemCount: string;
}, "category"> & {
category: "Community playlists" | "Top result";
thumbnails: import("../types").thumbnails;
}) | (Omit<{
category: "Featured playlists";
resultType: "playlist";
browseId: string;
title: string;
author: string;
itemCount: string;
}, "category"> & {
category: "Featured playlists" | "Top result";
thumbnails: import("../types").thumbnails;
}))[]>;
search(query: string, options?: {
filter?: "community_playlists" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<(Omit<{
category: "Community playlists";
resultType: "playlist";
browseId: string;
title: string;
author: string;
itemCount: string;
}, "category"> & {
category: "Community playlists" | "Top result";
thumbnails: import("../types").thumbnails;
})[]>;
search(query: string, options?: {
filter?: "featured_playlists" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<(Omit<{
category: "Featured playlists";
resultType: "playlist";
browseId: string;
title: string;
author: string;
itemCount: string;
}, "category"> & {
category: "Featured playlists" | "Top result";
thumbnails: import("../types").thumbnails;
})[]>;
search(query: string, options?: {
filter?: "uploads" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise;
getArtist(channelId: string): Promise;
getArtistAlbums(channelId: string, params: string): Promise;
getUser(channelId: string): Promise;
getUserPlaylists(channelId: string, params: string): Promise;
getAlbumBrowseId(audioPlaylistId: `OLAK5uy_${string}`): Promise<`MPREb_${string}`>;
getAlbum(browseId: string): Promise;
getSong(videoId: string, signatureTimestamp?: number | undefined): Promise>;
getLyrics(browseId: string | null | undefined): Promise;
getBaseJSUrl(): Promise;
getSignatureTimestamp(url?: string | undefined): Promise;
"__#2@#auth": string | null;
_httpsAgent: import("https").Agent | undefined;
_proxies?: false | import("axios").AxiosProxyConfig | undefined;
_headers: import("../types").Headers;
_context: any;
"__#2@#language": string | undefined;
_parser: import("../parsers/browsing").Parser;
_sapisid: any;
_sendRequest>(endpoint: string, body: Record, additionalParams?: string): Promise;
_sendGetRequest(url: string, params?: Record | undefined): Promise;
checkAuth(): any | null;
_checkAuth(): void;
getAuth(): string | null;
changeLanguage(language: string): Promise;
getLanguage(): string | undefined;
getProxy(): boolean | import("axios").AxiosProxyConfig | undefined;
} & {
getWatchPlaylist(watchPlaylist: import("./watch.types").getWatchPlaylistOptions): Promise;
getWatchPlaylistShuffle(options: import("./watch.types").getWatchPlaylistShuffleOptions): Promise>;
getHome(limit?: number): Promise;
search(query: string, options?: {
filter?: undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<((Omit<{
category: "Videos";
resultType: "video";
videoId: string;
title: string;
artists: {
name: string;
id: string;
}[];
views?: string | undefined;
duration: string | null;
duration_seconds: number;
}, "category"> & {
category: "Videos" | "Top result";
thumbnails: import("../types").thumbnails;
}) | (Omit<{
category: "Songs";
resultType: "song";
videoId: string;
title: string;
artists: {
name: string;
id: string;
}[];
album: {
name: string;
id: string;
} | null;
duration: string | null;
duration_seconds: number;
isExplicit: boolean;
feedbackTokens: {
add: any;
remove: any;
};
}, "category"> & {
category: "Songs" | "Top result";
thumbnails: import("../types").thumbnails;
}) | (Omit<{
category: "Albums";
resultType: "album";
browseId: string;
title: string;
type: "Album";
artist: string;
year: string | null;
isExplicit: boolean;
}, "category"> & {
category: "Albums" | "Top result";
thumbnails: import("../types").thumbnails;
}) | (Omit<{
category: "Community playlists";
resultType: "playlist";
browseId: string;
title: string;
author: string;
itemCount: string;
}, "category"> & {
category: "Community playlists" | "Top result";
thumbnails: import("../types").thumbnails;
}) | (Omit<{
category: "Featured playlists";
resultType: "playlist";
browseId: string;
title: string;
author: string;
itemCount: string;
}, "category"> & {
category: "Featured playlists" | "Top result";
thumbnails: import("../types").thumbnails;
}))[]>;
search(query: string, options?: {
filter?: "songs" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<(Omit<{
category: "Songs";
resultType: "song";
videoId: string;
title: string;
artists: {
name: string;
id: string;
}[];
album: {
name: string;
id: string;
} | null;
duration: string | null;
duration_seconds: number;
isExplicit: boolean;
feedbackTokens: {
add: any;
remove: any;
};
}, "category"> & {
category: "Songs" | "Top result";
thumbnails: import("../types").thumbnails;
})[]>;
search(query: string, options?: {
filter?: "videos" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<(Omit<{
category: "Videos";
resultType: "video";
videoId: string;
title: string;
artists: {
name: string;
id: string;
}[];
views?: string | undefined;
duration: string | null;
duration_seconds: number;
}, "category"> & {
category: "Videos" | "Top result";
thumbnails: import("../types").thumbnails;
})[]>;
search(query: string, options?: {
filter?: "albums" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<(Omit<{
category: "Albums";
resultType: "album";
browseId: string;
title: string;
type: "Album";
artist: string;
year: string | null;
isExplicit: boolean;
}, "category"> & {
category: "Albums" | "Top result";
thumbnails: import("../types").thumbnails;
})[]>;
search(query: string, options?: {
filter?: "artists" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<(Omit<{
category: "Artists";
resultType: "artist";
browseId: string;
artist: string;
shuffleId: string;
radioId: string;
}, "category"> & {
category: "Artists" | "Top result";
thumbnails: import("../types").thumbnails;
})[]>;
search(query: string, options?: {
filter?: "playlists" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<((Omit<{
category: "Community playlists";
resultType: "playlist";
browseId: string;
title: string;
author: string;
itemCount: string;
}, "category"> & {
category: "Community playlists" | "Top result";
thumbnails: import("../types").thumbnails;
}) | (Omit<{
category: "Featured playlists";
resultType: "playlist";
browseId: string;
title: string;
author: string;
itemCount: string;
}, "category"> & {
category: "Featured playlists" | "Top result";
thumbnails: import("../types").thumbnails;
}))[]>;
search(query: string, options?: {
filter?: "community_playlists" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<(Omit<{
category: "Community playlists";
resultType: "playlist";
browseId: string;
title: string;
author: string;
itemCount: string;
}, "category"> & {
category: "Community playlists" | "Top result";
thumbnails: import("../types").thumbnails;
})[]>;
search(query: string, options?: {
filter?: "featured_playlists" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<(Omit<{
category: "Featured playlists";
resultType: "playlist";
browseId: string;
title: string;
author: string;
itemCount: string;
}, "category"> & {
category: "Featured playlists" | "Top result";
thumbnails: import("../types").thumbnails;
})[]>;
search(query: string, options?: {
filter?: "uploads" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise;
getArtist(channelId: string): Promise;
getArtistAlbums(channelId: string, params: string): Promise;
getUser(channelId: string): Promise;
getUserPlaylists(channelId: string, params: string): Promise;
getAlbumBrowseId(audioPlaylistId: `OLAK5uy_${string}`): Promise<`MPREb_${string}`>;
getAlbum(browseId: string): Promise;
getSong(videoId: string, signatureTimestamp?: number | undefined): Promise>;
getLyrics(browseId: string | null | undefined): Promise;
getBaseJSUrl(): Promise;
getSignatureTimestamp(url?: string | undefined): Promise;
"__#2@#auth": string | null;
_httpsAgent: import("https").Agent | undefined;
_proxies?: false | import("axios").AxiosProxyConfig | undefined;
_headers: import("../types").Headers;
_context: any;
"__#2@#language": string | undefined;
_parser: import("../parsers/browsing").Parser;
_sapisid: any;
_sendRequest>(endpoint: string, body: Record, additionalParams?: string): Promise;
_sendGetRequest(url: string, params?: Record | undefined): Promise;
checkAuth(): any | null;
_checkAuth(): void;
getAuth(): string | null;
changeLanguage(language: string): Promise;
getLanguage(): string | undefined;
getProxy(): boolean | import("axios").AxiosProxyConfig | undefined;
} & {
getHome(limit?: number): Promise;
search(query: string, options?: {
filter?: undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<((Omit<{
category: "Videos";
resultType: "video";
videoId: string;
title: string;
artists: {
name: string;
id: string;
}[];
views?: string | undefined;
duration: string | null;
duration_seconds: number;
}, "category"> & {
category: "Videos" | "Top result";
thumbnails: import("../types").thumbnails;
}) | (Omit<{
category: "Songs";
resultType: "song";
videoId: string;
title: string;
artists: {
name: string;
id: string;
}[];
album: {
name: string;
id: string;
} | null;
duration: string | null;
duration_seconds: number;
isExplicit: boolean;
feedbackTokens: {
add: any;
remove: any;
};
}, "category"> & {
category: "Songs" | "Top result";
thumbnails: import("../types").thumbnails;
}) | (Omit<{
category: "Albums";
resultType: "album";
browseId: string;
title: string;
type: "Album";
artist: string;
year: string | null;
isExplicit: boolean;
}, "category"> & {
category: "Albums" | "Top result";
thumbnails: import("../types").thumbnails;
}) | (Omit<{
category: "Community playlists";
resultType: "playlist";
browseId: string;
title: string;
author: string;
itemCount: string;
}, "category"> & {
category: "Community playlists" | "Top result";
thumbnails: import("../types").thumbnails;
}) | (Omit<{
category: "Featured playlists";
resultType: "playlist";
browseId: string;
title: string;
author: string;
itemCount: string;
}, "category"> & {
category: "Featured playlists" | "Top result";
thumbnails: import("../types").thumbnails;
}))[]>;
search(query: string, options?: {
filter?: "songs" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<(Omit<{
category: "Songs";
resultType: "song";
videoId: string;
title: string;
artists: {
name: string;
id: string;
}[];
album: {
name: string;
id: string;
} | null;
duration: string | null;
duration_seconds: number;
isExplicit: boolean;
feedbackTokens: {
add: any;
remove: any;
};
}, "category"> & {
category: "Songs" | "Top result";
thumbnails: import("../types").thumbnails;
})[]>;
search(query: string, options?: {
filter?: "videos" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<(Omit<{
category: "Videos";
resultType: "video";
videoId: string;
title: string;
artists: {
name: string;
id: string;
}[];
views?: string | undefined;
duration: string | null;
duration_seconds: number;
}, "category"> & {
category: "Videos" | "Top result";
thumbnails: import("../types").thumbnails;
})[]>;
search(query: string, options?: {
filter?: "albums" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<(Omit<{
category: "Albums";
resultType: "album";
browseId: string;
title: string;
type: "Album";
artist: string;
year: string | null;
isExplicit: boolean;
}, "category"> & {
category: "Albums" | "Top result";
thumbnails: import("../types").thumbnails;
})[]>;
search(query: string, options?: {
filter?: "artists" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<(Omit<{
category: "Artists";
resultType: "artist";
browseId: string;
artist: string;
shuffleId: string;
radioId: string;
}, "category"> & {
category: "Artists" | "Top result";
thumbnails: import("../types").thumbnails;
})[]>;
search(query: string, options?: {
filter?: "playlists" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<((Omit<{
category: "Community playlists";
resultType: "playlist";
browseId: string;
title: string;
author: string;
itemCount: string;
}, "category"> & {
category: "Community playlists" | "Top result";
thumbnails: import("../types").thumbnails;
}) | (Omit<{
category: "Featured playlists";
resultType: "playlist";
browseId: string;
title: string;
author: string;
itemCount: string;
}, "category"> & {
category: "Featured playlists" | "Top result";
thumbnails: import("../types").thumbnails;
}))[]>;
search(query: string, options?: {
filter?: "community_playlists" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<(Omit<{
category: "Community playlists";
resultType: "playlist";
browseId: string;
title: string;
author: string;
itemCount: string;
}, "category"> & {
category: "Community playlists" | "Top result";
thumbnails: import("../types").thumbnails;
})[]>;
search(query: string, options?: {
filter?: "featured_playlists" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<(Omit<{
category: "Featured playlists";
resultType: "playlist";
browseId: string;
title: string;
author: string;
itemCount: string;
}, "category"> & {
category: "Featured playlists" | "Top result";
thumbnails: import("../types").thumbnails;
})[]>;
search(query: string, options?: {
filter?: "uploads" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise;
getArtist(channelId: string): Promise;
getArtistAlbums(channelId: string, params: string): Promise;
getUser(channelId: string): Promise;
getUserPlaylists(channelId: string, params: string): Promise;
getAlbumBrowseId(audioPlaylistId: `OLAK5uy_${string}`): Promise<`MPREb_${string}`>;
getAlbum(browseId: string): Promise;
getSong(videoId: string, signatureTimestamp?: number | undefined): Promise>;
getLyrics(browseId: string | null | undefined): Promise;
getBaseJSUrl(): Promise;
getSignatureTimestamp(url?: string | undefined): Promise;
"__#2@#auth": string | null;
_httpsAgent: import("https").Agent | undefined;
_proxies?: false | import("axios").AxiosProxyConfig | undefined;
_headers: import("../types").Headers;
_context: any;
"__#2@#language": string | undefined;
_parser: import("../parsers/browsing").Parser;
_sapisid: any;
_sendRequest>(endpoint: string, body: Record, additionalParams?: string): Promise;
_sendGetRequest(url: string, params?: Record | undefined): Promise;
checkAuth(): any | null;
_checkAuth(): void;
getAuth(): string | null;
changeLanguage(language: string): Promise;
getLanguage(): string | undefined;
getProxy(): boolean | import("axios").AxiosProxyConfig | undefined;
} & import("../ytmusic")._YTMusic>>(Base: TBase) => {
new (...args: any[]): {
/**
* Returns a list of uploaded songs
* @param {ut.uploadsOptions} [options=] Options object.
* @param {number} [options.limit=25] How many songs to return.
* @param {ut.Order} [options.order] Order of songs to return.
* @return Array of uploaded songs.
* @example Each item is in the following format
* {
* "entityId": "t_po_CICr2crg7OWpchDpjPjrBA",
* "videoId": "Uise6RPKoek",
* "artists": [{
* 'name': 'Coldplay',
* 'id': 'FEmusic_library_privately_owned_artist_detaila_po_CICr2crg7OWpchIIY29sZHBsYXk',
* }],
* "title": "A Sky Full Of Stars",
* "album": "Ghost Stories",
* "likeStatus": "LIKE",
* "thumbnails": [...]
* }
*/
getLibraryUploadSongs(options?: ut.uploadsOptions | undefined): Promise;
/**
* Returns a list of uploaded songs
* @param {ut.uploadsOptions} [options=] Options object.
* @param {number} [options.limit=25] How many songs to return.
* @param {ut.Order} [options.order] Order of songs to return.
* @return Array of uploaded songs.
* @example Each item is in the following format
* {
* "entityId": "t_po_CICr2crg7OWpchDpjPjrBA",
* "videoId": "Uise6RPKoek",
* "artists": [{
* 'name': 'Coldplay',
* 'id': 'FEmusic_library_privately_owned_artist_detaila_po_CICr2crg7OWpchIIY29sZHBsYXk',
* }],
* "title": "A Sky Full Of Stars",
* "album": "Ghost Stories",
* "likeStatus": "LIKE",
* "thumbnails": [...]
* }
*/
getLibraryUploadSongs(limit?: number | undefined, order?: import("./library.types").Order | undefined): Promise;
/**
* Gets the albums of uploaded songs in the user's library.
* @param {ut.uploadsOptions} [options=] Options object.
* @param {number} [options.limit=25] How many songs to return.
* @param {ut.Order} [options.order] Order of songs to return.
* @return Array of albums as returned by `getLibraryAlbums`
*/
getLibraryUploadAlbums(options?: ut.uploadsOptions | undefined): Promise;
/**
* Gets the albums of uploaded songs in the user's library.
* @param {ut.uploadsOptions} [options=] Options object.
* @param {number} [options.limit=25] How many songs to return.
* @param {ut.Order} [options.order] Order of songs to return.
* @return Array of albums as returned by `getLibraryAlbums`
*/
getLibraryUploadAlbums(limit?: number | undefined, order?: import("./library.types").Order | undefined): Promise;
/**
* Gets the artists of uploaded songs in the user's library.
* @param {ut.uploadsOptions} [options=] Options object.
* @param {number} [options.limit=25] How many songs to return.
* @param {ut.Order} [options.order] Order of songs to return.
* @return Array of artists as returned by `getLibraryArtists`
*/
getLibraryUploadArtists(options?: ut.uploadsOptions | undefined): Promise;
/**
* Gets the artists of uploaded songs in the user's library.
* @param {ut.uploadsOptions} [options=] Options object.
* @param {number} [options.limit=25] How many songs to return.
* @param {ut.Order} [options.order] Order of songs to return.
* @return Array of artists as returned by `getLibraryArtists`
*/
getLibraryUploadArtists(limit?: number | undefined, order?: import("./library.types").Order | undefined): Promise;
/**
* Returns a list of uploaded tracks for the artist.
* @param {string} [browseId] Browse id of the upload artist, i.e. from `get_library_upload_songs`.
* @param {number} [limit=25] Number of songs to return (increments of 25).
* @example
* [
* {
* "entityId": "t_po_CICr2crg7OWpchDKwoakAQ",
* "videoId": "Dtffhy8WJgw",
* "title": "Hold Me (Original Mix)",
* "artists": [
* {
* "name": "Jakko",
* "id": "FEmusic_library_privately_owned_artist_detaila_po_CICr2crg7OWpchIFamFra28"
* }
* ],
* "album": null,
* "likeStatus": "LIKE",
* "thumbnails": [...]
* }
* ]
*/
getLibraryUploadArtist(browseId: string, limit?: number): Promise;
/**
* Get information and tracks of an album associated with uploaded tracks
* @param {string} [browseId] Browse id of the upload album, i.e. from `getLibraryUploadSongs`
* @return Object with title, description, artist, and tracks.
* @example
* {
* "title": "18 Months",
* "type": "Album",
* "thumbnails": [...],
* "trackCount": 7,
* "duration": "24 minutes",
* "audioPlaylistId": "MLPRb_po_55chars",
* "tracks": [
* {
* "entityId": "t_po_22chars",
* "videoId": "FVo-UZoPygI",
* "title": "Feel So Close",
* "duration": "4:15",
* "duration_seconds": 255,
* "artists": None,
* "album": {
* "name": "18 Months",
* "id": "FEmusic_library_privately_owned_release_detailb_po_55chars"
* },
* "likeStatus": "INDIFFERENT",
* "thumbnails": None
* }
* ]
* }
*/
getLibraryUploadAlbum(browseId: string): Promise;
/**
* Uploads a song to YouTube Music.
* @param filepath Path to the music file (mp3, m4a, wma, flac or ogg).
* @returns Status String or full response.
*/
uploadSong(filepath: string): Promise<'STATUS_SUCCEEDED' | Record>;
/**
* Deletes a previously uploaded song or album.
* @param entityId The entity id of the uploaded song or album,
* e.g. retrieved from `getLibraryUploadSongs`
* @return Status String or error.
*/
deleteUploadEntity(entityId: string): Promise<'STATUS_SUCCEEDED' | Record>;
getLibraryPlaylists(limit?: number): Promise;
getLibrarySongs(options?: {
limit?: number | undefined;
validateResponse?: boolean | undefined;
order?: import("./library.types").Order | undefined;
} | undefined): Promise;
getLibraryAlbums(options?: {
limit?: number | undefined;
order?: import("./library.types").Order | undefined;
} | undefined): Promise;
getLibraryArtists(options?: {
limit?: number | undefined;
order?: import("./library.types").Order | undefined;
} | undefined): Promise;
getLibrarySubscriptions(options?: {
limit?: number | undefined;
order?: import("./library.types").Order | undefined;
} | undefined): Promise;
getLikedSongs(limit?: number): Promise>;
getHistory(): Promise;
removeHistoryItems(feedbackTokens: any[]): Promise>;
rateSong(videoId: string, rating?: import("./library.types").Rating): Promise>;
editSongLibraryStatus(feedbackTokens: string[]): Promise>; /**
* Deletes a previously uploaded song or album.
* @param entityId The entity id of the uploaded song or album,
* e.g. retrieved from `getLibraryUploadSongs`
* @return Status String or error.
*/
ratePlaylist(playlistId: string, rating?: import("./library.types").Rating): Promise>;
subscribeArtists(channelIds: string[]): Promise>;
unsubscribeArtists(channelIds: string[]): Promise>;
getPlaylist(playlistId: string, limit?: number): Promise;
getPlaylistSuggestions(suggestionsToken: string): Promise>;
createPlaylist(title: string, options?: {
description?: string | undefined;
privacyStatus?: import("./playlists.types").PrivacyStatus | undefined;
videoIds?: string[] | undefined;
sourcePlaylist?: string | undefined;
} | undefined): Promise>;
createPlaylist(title: string, description?: string | undefined, options?: {
privacyStatus?: import("./playlists.types").PrivacyStatus | undefined;
videoIds?: string[] | undefined;
sourcePlaylist?: string | undefined;
} | undefined): Promise>;
editPlaylist(playlistId: string, options: {
title?: string | undefined;
description?: string | null | undefined;
privacyStatus?: import("./playlists.types").PrivacyStatus | undefined;
moveItem?: [string, string] | undefined;
addPlaylistId?: string | undefined;
}): Promise>;
deletePlaylist(playlistId: string): Promise>;
addPlaylistItems(playlistId: string, options: {
videoIds: string[];
sourcePlaylist: string;
duplicates: boolean;
}): Promise;
removePlaylistItems(playlistId: string, videos: Record[]): Promise;
getMoodCategories(): Promise;
getMoodPlaylists(params: string): Promise;
getCharts(country?: string): Promise>;
getWatchPlaylist(watchPlaylist: import("./watch.types").getWatchPlaylistOptions): Promise;
getWatchPlaylistShuffle(options: import("./watch.types").getWatchPlaylistShuffleOptions): Promise>;
getHome(limit?: number): Promise;
search(query: string, options?: {
filter?: undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<((Omit<{
category: "Videos";
resultType: "video";
videoId: string;
title: string;
artists: {
name: string;
id: string;
}[];
views?: string | undefined;
duration: string | null;
duration_seconds: number;
}, "category"> & {
category: "Videos" | "Top result";
thumbnails: import("../types").thumbnails;
}) | (Omit<{
category: "Songs";
resultType: "song";
videoId: string;
title: string;
artists: {
name: string;
id: string;
}[];
album: {
name: string;
id: string;
} | null;
duration: string | null;
duration_seconds: number;
isExplicit: boolean;
feedbackTokens: {
add: any;
remove: any;
};
}, "category"> & {
category: "Songs" | "Top result";
thumbnails: import("../types").thumbnails;
}) | (Omit<{
category: "Albums";
resultType: "album";
browseId: string;
title: string;
type: "Album";
artist: string;
year: string | null;
isExplicit: boolean;
}, "category"> & {
category: "Albums" | "Top result";
thumbnails: import("../types").thumbnails;
}) | (Omit<{
category: "Community playlists";
resultType: "playlist";
browseId: string;
title: string;
author: string;
itemCount: string;
}, "category"> & {
category: "Community playlists" | "Top result";
thumbnails: import("../types").thumbnails;
}) | (Omit<{
category: "Featured playlists";
resultType: "playlist";
browseId: string;
title: string;
author: string;
itemCount: string;
}, "category"> & {
category: "Featured playlists" | "Top result";
thumbnails: import("../types").thumbnails;
}))[]>;
search(query: string, options?: {
filter?: "songs" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<(Omit<{
category: "Songs";
resultType: "song";
videoId: string;
title: string;
artists: {
name: string;
id: string;
}[];
album: {
name: string;
id: string;
} | null;
duration: string | null;
duration_seconds: number;
isExplicit: boolean;
feedbackTokens: {
add: any;
remove: any;
};
}, "category"> & {
category: "Songs" | "Top result";
thumbnails: import("../types").thumbnails;
})[]>;
search(query: string, options?: {
filter?: "videos" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<(Omit<{
category: "Videos";
resultType: "video";
videoId: string;
title: string;
artists: {
name: string;
id: string;
}[];
views?: string | undefined;
duration: string | null;
duration_seconds: number;
}, "category"> & {
category: "Videos" | "Top result";
thumbnails: import("../types").thumbnails;
})[]>;
search(query: string, options?: {
filter?: "albums" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<(Omit<{
category: "Albums";
resultType: "album";
browseId: string;
title: string;
type: "Album";
artist: string;
year: string | null;
isExplicit: boolean;
}, "category"> & {
category: "Albums" | "Top result";
thumbnails: import("../types").thumbnails;
})[]>;
search(query: string, options?: {
filter?: "artists" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<(Omit<{
category: "Artists";
resultType: "artist";
browseId: string;
artist: string;
shuffleId: string;
radioId: string;
}, "category"> & {
category: "Artists" | "Top result";
thumbnails: import("../types").thumbnails;
})[]>;
search(query: string, options?: {
filter?: "playlists" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<((Omit<{
category: "Community playlists";
resultType: "playlist";
browseId: string;
title: string;
author: string;
itemCount: string;
}, "category"> & {
category: "Community playlists" | "Top result";
thumbnails: import("../types").thumbnails;
}) | (Omit<{
category: "Featured playlists";
resultType: "playlist";
browseId: string;
title: string;
author: string;
itemCount: string;
}, "category"> & {
category: "Featured playlists" | "Top result";
thumbnails: import("../types").thumbnails;
}))[]>;
search(query: string, options?: {
filter?: "community_playlists" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<(Omit<{
category: "Community playlists";
resultType: "playlist";
browseId: string;
title: string;
author: string;
itemCount: string;
}, "category"> & {
category: "Community playlists" | "Top result";
thumbnails: import("../types").thumbnails;
})[]>;
search(query: string, options?: {
filter?: "featured_playlists" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise<(Omit<{
category: "Featured playlists";
resultType: "playlist";
browseId: string;
title: string;
author: string;
itemCount: string;
}, "category"> & {
category: "Featured playlists" | "Top result";
thumbnails: import("../types").thumbnails;
})[]>;
search(query: string, options?: {
filter?: "uploads" | undefined;
scope?: import("../types").Scope | undefined;
limit?: number | undefined;
ignoreSpelling?: boolean | undefined;
} | undefined): Promise;
getArtist(channelId: string): Promise;
getArtistAlbums(channelId: string, params: string): Promise;
getUser(channelId: string): Promise;
getUserPlaylists(channelId: string, params: string): Promise;
getAlbumBrowseId(audioPlaylistId: `OLAK5uy_${string}`): Promise<`MPREb_${string}`>;
getAlbum(browseId: string): Promise;
getSong(videoId: string, signatureTimestamp?: number | undefined): Promise>;
getLyrics(browseId: string | null | undefined): Promise;
getBaseJSUrl(): Promise;
getSignatureTimestamp(url?: string | undefined): Promise;
"__#2@#auth": string | null;
_httpsAgent: import("https").Agent | undefined;
_proxies?: false | import("axios").AxiosProxyConfig | undefined;
_headers: import("../types").Headers;
_context: any;
"__#2@#language": string | undefined;
_parser: import("../parsers/browsing").Parser;
_sapisid: any;
_sendRequest>(endpoint: string, body: Record, additionalParams?: string): Promise;
_sendGetRequest(url: string, params?: Record | undefined): Promise;
checkAuth(): any | null;
_checkAuth(): void;
getAuth(): string | null;
changeLanguage(language: string): Promise;
getLanguage(): string | undefined;
getProxy(): boolean | import("axios").AxiosProxyConfig | undefined;
};
} & TBase;