relaycode
Version:
A developer assistant that automates applying code changes from LLMs.
11 lines (9 loc) • 831 B
text/typescript
declare const readFileContent: (filePath: string, cwd?: string) => Promise<string | null>;
declare const writeFileContent: (filePath: string, content: string, cwd?: string) => Promise<void>;
declare const deleteFile: (filePath: string, cwd?: string) => Promise<void>;
declare const fileExists: (filePath: string, cwd?: string) => Promise<boolean>;
declare const safeRename: (fromPath: string, toPath: string) => Promise<void>;
declare const renameFile: (fromPath: string, toPath: string, cwd?: string) => Promise<void>;
declare const isDirectoryEmpty: (dirPath: string) => Promise<boolean>;
declare const removeEmptyParentDirectories: (dirPath: string, rootDir: string) => Promise<void>;
export { deleteFile, fileExists, isDirectoryEmpty, readFileContent, removeEmptyParentDirectories, renameFile, safeRename, writeFileContent };