/** * Generic chat-completion summarizer. */ import type { SummarizerLike } from '../types.js'; export interface ChatCompletionsClient { chat: { completions: { create(body: { model: string; messages: Array<{ role: string; content: string; }>; max_tokens?: number; }): Promise<{ choices: Array<{ message: { content: string | null; }; }>; }>; }; }; } export interface SummarizerOptions { client: ChatCompletionsClient; model?: string; systemPrompt?: string; maxTokens?: number; } export declare class Summarizer implements SummarizerLike { private readonly client; private readonly model; private readonly systemPrompt; private readonly maxTokens; constructor({ client, model, systemPrompt, maxTokens, }: SummarizerOptions); summarize(text: string): Promise; } //# sourceMappingURL=summarizer.d.ts.map