UNPKG

editcodewithai

Version:
15 lines (14 loc) 558 B
import { VizFiles, VizFile, FileCollection } from "@vizhub/viz-types"; /** * If the LLM outputs empty text for a file, we interpret this * as a request to delete the file. */ export declare function shouldDeleteFile(file?: VizFile): boolean; /** * Processes files for the prompt by truncating large files */ export declare function prepareFilesForPrompt(files: VizFiles): FileCollection; /** * Merges original files with changes from the LLM */ export declare function mergeFileChanges(originalFiles: VizFiles, parsedFiles: FileCollection): VizFiles;