/** * Helper functions for reading and writing to text files. * * @module */ /** * Helper function to asynchronously append data to a file. If the file does not exist, it will be * automatically created. * * @throws If the file cannot be appended to. */ export declare function appendFile(filePath: string, data: string): Promise; /** * Helper function to delete a specific line in a text file. * * This assumes that the file is a text file and uses an encoding of "utf8". * * @throws If the line number does not exist in the text file or the file cannot be written to. */ export declare function deleteLineInFile(filePath: string, lineNumber: number): Promise; /** * Helper function to synchronously prepend data to a file. * * @throws If the file cannot be written to. */ export declare function prependFile(filePath: string, data: string): Promise; /** * Helper function to asynchronously read a file. * * This assumes that the file is a text file and uses an encoding of "utf8". * * @throws If the file cannot be read. */ export declare function readFile(filePath: string): Promise; /** * Helper function to replace a specific line in a text file. * * This assumes that the file is a text file and uses an encoding of "utf8". * * @throws If the line number does not exist in the text file or the file cannot be written to. */ export declare function replaceLineInFile(filePath: string, lineNumber: number, newLine: string): Promise; /** * Helper function to asynchronously replace text in a file. * * This assumes that the file is a text file and uses an encoding of "utf8". * * @throws If the file cannot be written to. */ export declare function replaceTextInFile(filePath: string, searchValue: string | RegExp, replaceValue: string): Promise; /** * Helper function to asynchronously write data to a file. * * @throws If the file cannot be written to. */ export declare function writeFile(filePath: string, data: string): Promise; //# sourceMappingURL=readWrite.d.ts.map