editcodewithai
Version:
Edit Code With AI
11 lines (10 loc) • 473 B
TypeScript
import type { PerformAiEditParams, PerformAiEditResult } from "./types";
export type { LlmFunction, PerformAiEditParams, PerformAiEditResult, } from "./types";
/**
* Core AI logic for:
* - Building the prompt (including context)
* - Calling the provided LLM function
* - Parsing and merging file changes
* - Retrieving cost metadata
*/
export declare function performAiEdit({ prompt, files, llmFunction, apiKey, }: PerformAiEditParams): Promise<PerformAiEditResult>;