mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-19 04:21:35 +00:00
68 lines
2.2 KiB
TypeScript
68 lines
2.2 KiB
TypeScript
export = Library;
|
|
/** @namespace */
|
|
declare class Library {
|
|
/**
|
|
* @param {object} response - API response.
|
|
* @param {import('../../core/Actions')} actions
|
|
*/
|
|
constructor(response: object, actions: import('../../core/Actions'));
|
|
profile: {
|
|
stats: any;
|
|
user_info: any;
|
|
};
|
|
/** @type {{ type: string, title: import('../contents/classes/Text'), contents: object[], getAll: Promise.<Playlist | History | Feed> }[] } */
|
|
sections: {
|
|
type: string;
|
|
title: import('../contents/classes/Text');
|
|
contents: object[];
|
|
getAll: Promise<Playlist | History | Feed>;
|
|
}[];
|
|
get history(): any;
|
|
get watch_later(): any;
|
|
get liked_videos(): any;
|
|
get playlists(): any;
|
|
get clips(): any;
|
|
get page(): {
|
|
contents: any;
|
|
contents_memo: Map<any, any>;
|
|
on_response_received_actions: any;
|
|
on_response_received_actions_memo: Map<any, any>;
|
|
on_response_received_endpoints: any;
|
|
on_response_received_endpoints_memo: Map<any, any>;
|
|
on_response_received_commands: any;
|
|
on_response_received_commands_memo: Map<any, any>;
|
|
continuation_contents: any;
|
|
metadata: any;
|
|
header: any;
|
|
microformat: import("../contents/classes/PlayerMicroformat");
|
|
sidebar: any;
|
|
overlay: any;
|
|
refinements: any;
|
|
estimated_results: any;
|
|
player_overlays: any;
|
|
playability_status: {
|
|
status: number;
|
|
error_screen: any;
|
|
embeddable: boolean;
|
|
reason: string;
|
|
};
|
|
streaming_data: {
|
|
expires: Date;
|
|
formats: import("../contents/classes/Format")[];
|
|
adaptive_formats: import("../contents/classes/Format")[];
|
|
dash_manifest_url: any;
|
|
dls_manifest_url: any;
|
|
};
|
|
captions: any;
|
|
video_details: import("../contents/classes/VideoDetails");
|
|
annotations: any;
|
|
storyboards: any;
|
|
endscreen: import("../contents/classes/Endscreen");
|
|
cards: import("../contents/classes/CardCollection");
|
|
};
|
|
#private;
|
|
}
|
|
import Playlist = require("./Playlist");
|
|
import History = require("./History");
|
|
import Feed = require("../../core/Feed");
|