ctx-gen
Version:
AI-Enhanced Documentation Generator for Code Understanding
24 lines (23 loc) • 988 B
TypeScript
import { CtxGenOptions } from '../types/index.js';
/**
* Analyzes multiple files concurrently using OpenAI to enhance documentation
* @param filesToAnalyze - Array of files to analyze
* @param options - CtxGen options
* @returns Map of file paths to enhanced documentation
*/
export declare function analyzeFilesWithAI(filesToAnalyze: Array<{
filePath: string;
content: string;
language: string;
basicDocumentation: string;
}>, options: CtxGenOptions): Promise<Map<string, string>>;
/**
* Analyzes a file using OpenAI to enhance documentation
* @param filePath - The file path
* @param content - The file content
* @param language - The file language
* @param basicDocumentation - The basic documentation to enhance
* @param options - CtxGen options
* @returns Enhanced documentation string
*/
export declare function analyzeFileWithAI(filePath: string, content: string, language: string, basicDocumentation: string, options: CtxGenOptions): Promise<string>;