import { MinimalClient } from "@vot.js/core/client"; import type { ClientResponse } from "@vot.js/core/types/client"; import type { RequestHeaders } from "@vot.js/shared/types/data"; import { type ArticleSummarizeOpts, type ArticleSummarizeResponse, type MinimalSummarizeResponse, type SharingVideoSummarizeResponse, type SummarizeResponse, type SummarizeType, type TextSummarizeOpts, type TextSummarizeResponse, type VideoSummarizeOpts, type GetSharingContentOpts } from "./types/yandex.js"; import type { NeuroClientOpts } from "./types/client.js"; import type { GetSharingUrlOpts, GetSharingUrlSuccess } from "./types/thapi.js"; export default class NeuroClient extends MinimalClient { paths: { summarizeVideo: string; summarizeWithCookie: string; summarizeWithSec: string; sharingUrl: string; sharing: string; }; apiToken?: string; sessionIdCookie?: string; hostTH: string; schemaTH: string; constructor({ apiToken, sessionIdCookie, host, hostTH, headers, fetchOpts, ...opts }?: NeuroClientOpts); requestTH(path: string, body: NonNullable, headers?: Record): Promise>; summarizeVideo({ url, language, extraOpts, headers, }: VideoSummarizeOpts): Promise; getSharingUrl({ url, }: GetSharingUrlOpts): Promise; getSharingContent = ArticleSummarizeResponse | SharingVideoSummarizeResponse | TextSummarizeResponse>({ token, headers }: GetSharingContentOpts): Promise; getTHSummarizeSec(): { path: string; headers: Record; }; protected summarizeImpl>>(type: Exclude, body: Record, headers: RequestHeaders): Promise; summarizeArticle({ url, extraOpts: { sessionId, bypassCache }, headers, }: ArticleSummarizeOpts): Promise; summarizeText({ text, extraOpts: { sessionId, bypassCache }, headers, }: TextSummarizeOpts): Promise; } export declare class NeuroWorkerClient extends NeuroClient { constructor(opts?: NeuroClientOpts); request(path: string, body: Uint8Array, headers?: Record, method?: string): Promise>; requestTH(path: string, body: NonNullable, headers?: Record): Promise>; } //# sourceMappingURL=client.d.ts.map