import { VideoInfo } from '../PlayerChannel.js'; import { PlayerPlugin } from '../PlayerPlugin.js'; import { VideoFetcher } from './VideoFetcher.js'; export declare class YoutubeFetcher implements VideoFetcher { /** * Get the duration in seconds from the youtube duration * @param durationStr */ static youtubeDurationToSeconds(durationStr: string): number; /** * Parse a youtube link * @param link * @returns */ static parseYoutubeLink(link: string): { videoId: string; playlistId: string | null; start: number; }; /** * Youtube API wrapper */ private readonly youtube; constructor(); get(playerPlugin: PlayerPlugin, param: string): Promise; /** * * @param param * @returns */ search(playerPlugin: PlayerPlugin, type: string, search: string, limit: number): Promise; /** * Get a video metadata from its id * @param youtube * @param id */ getVideoInfo(id: string): Promise; /** * Get a playlist metadata from its id * @param youtube * @param id */ getYoutubePlaylistMeta(id: string): Promise; }