UNPKG

@rolme/ytscript

Version:

A CLI tool to download YouTube transcripts and generate summaries

15 lines (14 loc) 560 B
import type { TranscriptResult } from '../../types/transcript.js'; import { AIProvider, SummaryOptions } from '../../types/ai.js'; export declare class GoogleProvider implements AIProvider { readonly name = "google"; private apiKey; constructor(apiKey: string); getTranscript(videoId: string): Promise<TranscriptResult>; summarize(transcript: string, options?: SummaryOptions): Promise<string>; callGoogleAPI<T>(config: { endpoint: string; baseUrl: string; params: Record<string, unknown>; }): Promise<T>; }