export interface Subtitle { start: string; dur: string; text: string; } export interface Options { videoID: string; lang?: string; /** * Custom fetch implementation. Useful for routing requests through a * residential proxy (undici's ProxyAgent, node-fetch + https-proxy-agent, etc.) * when deploying to environments where YouTube blocks datacenter IPs * (Vercel, AWS Lambda, Cloudflare Workers). Defaults to global fetch. */ fetch?: typeof fetch; } export interface VideoDetails { title: string; description: string; subtitles: Subtitle[]; } export declare const getSubtitles: ({ videoID, lang, fetch: customFetch, }: Options) => Promise; export declare const getVideoDetails: ({ videoID, lang, fetch: customFetch, }: Options) => Promise;