/** * YouTube Scraper * * Extract metadata from YouTube video URLs. * * YouTube embeds rich JSON data in their HTML pages including: * - ytInitialPlayerResponse - video details, description * - ytInitialData - additional metadata, categories * - JSON-LD structured data */ import type { ScrapeOutcome, ScraperConfig } from './types'; /** * Extract video ID from a YouTube URL. * Handles various YouTube URL formats. */ export declare function extractYouTubeVideoId(url: string): string | null; /** * Build canonical YouTube URL from video ID. */ export declare function buildYouTubeUrl(videoId: string): string; /** * Scrape metadata from a YouTube URL. */ export declare function scrapeYouTube(url: string, config?: ScraperConfig): Promise; //# sourceMappingURL=youtube.d.ts.map