@bobmatnyc/ai-code-review
Version:
A TypeScript-based tool for automated code reviews using AI models from Google Gemini, Anthropic Claude, and OpenRouter
23 lines (22 loc) • 1.03 kB
TypeScript
/**
* @fileoverview Wrapper for the OpenRouter client.
*
* This module provides a wrapper for the OpenRouter client to handle dynamic imports.
*/
import { ReviewType, ReviewOptions, ReviewResult, FileInfo } from '../types/review';
import { ProjectDocs } from '../utils/projectDocs';
/**
* Initialize the OpenRouter client
* @returns Promise resolving to a boolean indicating if initialization was successful
*/
export declare function initializeAnyOpenRouterModel(): Promise<boolean>;
/**
* Generate a consolidated review using the OpenRouter API
* @param fileInfos Array of file information objects
* @param project Project name
* @param reviewType Type of review to perform
* @param projectDocs Optional project documentation
* @param options Review options
* @returns Promise resolving to the review result
*/
export declare function generateOpenRouterConsolidatedReview(fileInfos: FileInfo[], project: string, reviewType: ReviewType, projectDocs: ProjectDocs | null, options: ReviewOptions): Promise<ReviewResult>;