bilingual-summarizer
Version:
A powerful text summarization package for Arabic and English content with sentiment analysis and topic extraction
16 lines (15 loc) • 720 B
TypeScript
import { GeminiConfig } from '../types';
/**
* Generates a summary using Google's Gemini AI
* @param text The text to summarize
* @param sentenceCount The maximum number of sentences in the summary
* @param geminiConfig Configuration for the Gemini API
* @returns The AI-generated summary
*/
export declare function summarizeWithGeminiAI(text: string, sentenceCount: number | undefined, geminiConfig: GeminiConfig): Promise<string>;
/**
* Validates that a Gemini configuration is properly set up
* @param config The Gemini configuration to validate
* @returns True if the configuration is valid, false otherwise
*/
export declare function isGeminiConfigValid(config: GeminiConfig | null | undefined): boolean;