UNPKG

yaytt

Version:

Blazingly fast YouTube caption extractor with deduplication.

19 lines (18 loc) 677 B
export { YouTubeCaptionExtractor } from './extractor.js'; export { Caption, CaptionOptions, ExtractorConfig, CaptionExtractionError } from './types.js'; export type * from './types.js'; export declare function extractCaptions(videoIdOrUrl: string, options?: { lang?: string; deduplicate?: boolean; deduplicationOptions?: { timeThreshold?: number; similarityThreshold?: number; mergePartialMatches?: boolean; aggressiveMode?: boolean; }; }): Promise<import("./types.js").Caption[]>; export declare function getAvailableLanguages(videoIdOrUrl: string): Promise<{ code: string; name: string; isAutomatic: boolean; }[]>;