UNPKG

@rolme/ytscript

Version:

A CLI tool to download YouTube transcripts and generate summaries

17 lines (16 loc) 870 B
export { getTranscript } from './services/transcript/index.js'; export type { TranscriptOptions, TranscriptResult } from './types/transcript.js'; export { TranscriptError } from './errors.js'; export { AIError } from './types/ai.js'; export type { AIOptions, SummaryOptions } from './types/ai.js'; import type { TranscriptOptions, TranscriptResult } from './types/transcript.js'; import type { AIOptions, SummaryOptions } from './types/ai.js'; export interface VideoOptions extends TranscriptOptions { outputPath?: string; } export interface SummaryResult extends TranscriptResult { summary: string; provider: string; } export declare function getVideoTranscript(url: string, options?: VideoOptions): Promise<TranscriptResult>; export declare function summarizeVideo(url: string, options?: AIOptions & VideoOptions & SummaryOptions): Promise<SummaryResult>;