@np-dev/youtubei-js
Version:
A wrapper around YouTube's private API. Supports YouTube, YouTube Music, YouTube Kids and YouTube Studio (WIP).
22 lines (21 loc) • 981 B
TypeScript
import type NavigationEndpoint from '../classes/NavigationEndpoint.js';
import PlayerOverlay from '../classes/PlayerOverlay.js';
import SlimVideoMetadata from '../classes/SlimVideoMetadata.js';
import type Actions from '../../core/Actions.js';
import type { ApiResponse } from '../../core/Actions.js';
import type { ObservedArray, YTNode } from '../helpers.js';
import { MediaInfo } from '../../core/mixins/index.js';
declare class VideoInfo extends MediaInfo {
basic_info: import("../misc.js").VideoDetails | undefined;
captions: import("../nodes.js").PlayerCaptionsTracklist | undefined;
slim_video_metadata?: SlimVideoMetadata;
watch_next_feed?: ObservedArray<YTNode>;
current_video_endpoint?: NavigationEndpoint;
player_overlays?: PlayerOverlay;
constructor(data: [ApiResponse, ApiResponse?], actions: Actions, cpn: string);
/**
* Adds video to the watch history.
*/
addToWatchHistory(): Promise<Response>;
}
export default VideoInfo;