import * as fs from 'fs/promises'; import { Dirent } from 'fs'; export type Reviver = NonNullable[1]>; /** * Like `fs.readFile`, but for JSON files specifically. Will throw on malformed JSON. */ export declare function readJsonFile(filePath: string, reviver?: Reviver): Promise; export declare function readMaybeFile(filePath: string): Promise; export declare function readMaybeDir(dirPath: string): Promise; export type WriteFileOptions = Parameters[2]; export declare function writeFileRecursive(filePath: string, content: string | Buffer, options?: WriteFileOptions): Promise; export interface UpdateYamlOptions { schemaUrl?: string; } export declare function updateYamlFile(filePath: string, content: object, options?: UpdateYamlOptions): Promise; export declare function fileExists(filepath: string): Promise; export declare function folderExists(folderpath: string): Promise; export declare function fileReplace(filePath: string, searchValue: string | RegExp, replaceValue: string): Promise; export declare function fileReplaceAll(filePath: string, searchValue: string | RegExp, replaceValue: string): Promise;