UNPKG

chatgpt-fine-tuning

Version:
16 lines (15 loc) 605 B
/** * FileManager contains static *awaitable* file-system functions */ export declare class FileManager { static readFile(path: string): Promise<string>; static writeFile(path: string, contents: string): Promise<void>; static copyFile(path1: string, path2: string): Promise<void>; static dirExists(path: string): boolean; /** * Writes a line to a file. Creates the file if it doesn't exist, or appends if it does. * @param path The path to the file * @param line The line to write to the file */ static writeLine(path: string, line: string): Promise<void>; }