export interface FilesAndFolders { readFromEnv: (envName: string) => Promise; /** * Reads a file from the path, if the path is an array of strings, join the strings with .join() * and then work normally */ readFile: (path: string) => Promise; join: (...paths: string[]) => Promise; /** * When the path is a simple string work normally, if the path is an array of strings, join * the strings with .join() and then work normally */ exists: (path: string) => Promise; /** * When the path is a simple string work normally, if the path is an array of strings, join * the strings with .join() and then work normally */ readDirectory: (path: string) => Promise; makeDirectory: (path: string) => Promise; /** * When the path is a simple string work normally, if the path is an array of strings, join * the strings with .join() and then work normally */ appendFile: (path: string, content: string) => Promise; /** * Retrieves the file url from the path. This is useful because of certain OSes * that only allows dynamic imports to occur if the path is a URL with file:// */ getPathToFileURL: (path: string) => string; getFileURLToPath: (path: string) => string; /** * When the path is a simple string work normally, if the path is an array of strings, join * the strings with .join() and then work normally */ writeFile: (path: string, content: string) => Promise; /** * When the path is a simple string work normally, if the path is an array of strings, join * the strings with .join() and then work normally */ removeFile: (path: string) => Promise; dirname: (path: string) => string; /** * When the path is a simple string work normally, if the path is an array of strings, join * the strings with .join() and then work normally */ basename: (path: string) => Promise; /** * Solve the relative path from {from} to {to}. */ relative: (from: string, to: string) => Promise; } //# sourceMappingURL=files.d.ts.map