/** * YouTube API Handler * * Extracts video information from youtube.com using oEmbed API. * Enhanced data available with YOUTUBE_API_KEY environment variable. */ import { BaseSiteHandler, type FetchFunction, type SiteHandlerOptions, type SiteHandlerResult } from './types.js'; export declare class YouTubeHandler extends BaseSiteHandler { readonly name = "YouTube"; readonly strategy: "api:youtube"; canHandle(url: string): boolean; extract(url: string, fetch: FetchFunction, opts: SiteHandlerOptions): Promise; /** * Extract video ID from YouTube URL */ private getVideoId; /** * Fetch YouTube oEmbed data */ private fetchOEmbed; /** * Fetch enhanced data from YouTube Data API v3 * Requires YOUTUBE_API_KEY env var */ private fetchDataAPI; /** * Format YouTube data into content result */ private formatVideoData; /** * Convert ISO 8601 duration (PT1H2M3S) to human-readable format */ private formatDuration; } export declare const youtubeHandler: YouTubeHandler; //# sourceMappingURL=youtube-handler.d.ts.map