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