import fs from 'fs-extra'; import { IAppConfig } from '../../interfaces/index.js'; /** * A utility class for interacting with the filesystem. Provides helper methods * for storing responses as a JSON file. */ export declare class IOUtil { private config; constructor(config: Required); getFilePath(filename: string, dateFormat?: string): string; /** * Writes the given data to the filesystem as a JSON file with a name using * the following format: `-YYYY.MM.DD-HH.mm.ss.json` * * It results in a filename like `bills-2022.01.01-12.00.00.json`. * * @param filename The name of the file to write to. * @param data The data to save to the file. * @param writeOptions The options to use when writing to the file. * * @returns A promise that resolves when the file has been saved. */ saveFile(filename: string, data: any, writeOptions?: fs.WriteOptions): Promise; } //# sourceMappingURL=IOUtil.d.ts.map