@bobmatnyc/ai-code-review
Version:
A TypeScript-based tool for automated code reviews using AI models from Google Gemini, Anthropic Claude, and OpenRouter
25 lines (24 loc) • 998 B
TypeScript
/**
* @fileoverview Utility for generating and saving unused code removal scripts.
*
* This module provides utilities for generating and saving shell scripts
* that can be used to remove unused code identified in reviews.
*/
import { ReviewResult } from '../types/review';
/**
* Generate and save a removal script for unused code
* @param reviewResult Review result containing metadata with the removal script
* @param outputDir Directory to save the script to
* @returns Path to the saved script
*/
export declare function saveRemovalScript(reviewResult: ReviewResult, outputDir: string): Promise<string | null>;
/**
* Print instructions for using the removal script
* @param scriptPath Path to the removal script
*/
export declare function printRemovalScriptInstructions(scriptPath: string | null): void;
declare const _default: {
saveRemovalScript: typeof saveRemovalScript;
printRemovalScriptInstructions: typeof printRemovalScriptInstructions;
};
export default _default;