import type { TranscriptSearchOptions, VideoTranscriptData } from "./types.js"; export interface SubtitleData { data_source: "subtitle" | "ai_subtitle" | "description"; video_info: { title: string; description: string; tags: string[]; subtitle_text?: string; pubdate?: string; pubdate_timestamp?: number; }; } /** * 获取纯视频转录文本 * * 不自动降级到描述。如果字幕不可用: * - fallbackToDescription=false -> throw NoSubtitleError * - fallbackToDescription=true -> return description text * - COOKIE_EXPIRED 错误始终向上传播 * - 当 timestamps 或 range 被请求时,拒绝 description fallback * - searchOptions 存在时拒绝 description fallback,只搜索真实字幕 */ export declare function getVideoTranscriptData(bvidOrUrl: string, preferredLang?: string, fallbackToDescription?: boolean, page?: number, includeTimestamps?: boolean, startSeconds?: number, endSeconds?: number, searchOptions?: TranscriptSearchOptions, fallbackToAsr?: boolean, excludeAiSubtitles?: boolean, forceAsr?: boolean, signal?: AbortSignal): Promise; /** * 获取视频信息及字幕 */ export declare function getVideoInfoWithSubtitle(bvidOrUrl: string, preferredLang?: string, page?: number, excludeAiSubtitles?: boolean): Promise; //# sourceMappingURL=subtitle.d.ts.map