import type { RequestHeaders } from "@vot.js/shared/types/data"; export type SharedSummarizeOpts = { extraOpts?: T; headers?: RequestHeaders; }; export type SharedSummarizeExtraOpts = { bypassCache?: boolean; sessionId?: string; }; export declare enum SummarizeStatus { UNKNOWN = 0, GENERATING = 1, SUCCESS = 2, FAILED = 3, NOT_FOUND_IN_CACHE = 4 } export type SummarizeType = "article" | "text" | "file" | "video"; export type MinimalSummarizeResponse = { pollIntervalMs: number; sessionId: string; statusCode: SummarizeStatus; title: string; type: T; }; export type SummarizeResponse = MinimalSummarizeResponse & { chapters: SummarizeChapter[]; haveChapters: boolean; normalizedUrl: string; sharingUrl: string; summaryAgeSeconds: number; thesis: SummarizeThesis[]; }; export type SummarizeThesis = { id: number; content: string; }; export type SummarizeThesisWithLink = SummarizeThesis & { link: string; }; export type SummarizeThesisWithTime = SummarizeThesis & { startTime: number; }; export type SummarizeChapter = { id: number; content: string; theses: T[]; }; export type VideoSummarizeChapter = SummarizeChapter & { startTime: number; }; export type VideoSummarizeExtraOpts = SharedSummarizeExtraOpts & { videoTitle?: string; }; export type VideoSummarizeOpts = SharedSummarizeOpts & { url: string; language: string; }; export type VideoSummarizeResponse = MinimalSummarizeResponse<"video"> & { chapters: VideoSummarizeChapter[]; unknown0?: string; haveChapters: true; thesis: SummarizeThesisWithTime[]; }; export type ArticleSummarizeExtraOpts = SharedSummarizeExtraOpts; export type ArticleSummarizeOpts = SharedSummarizeOpts & { url: string; }; export type ArticleSummarizeResponse = SummarizeResponse<"article">; export type TextSummarizeExtraOpts = SharedSummarizeExtraOpts; export type TextSummarizeOpts = SharedSummarizeOpts & { text: string; }; export type TextSummarizeResponse = SummarizeResponse<"text">; export type GetSharingContentOpts = { token: string; headers?: RequestHeaders; }; export type SharingVideoSummarizeResponse = MinimalSummarizeResponse<"video"> & { contentId: string; keypoints: VideoSummarizeChapter[]; normalizedUrl: string; sharingUrl: string; summaryAgeSeconds: number; }; //# sourceMappingURL=yandex.d.ts.map