UNPKG

@lodestar/beacon-node

Version:

A Typescript implementation of the beacon chain

9 lines 532 B
/** Ensure a directory exists */ export declare function ensureDir(path: string): Promise<void>; /** Write data to a file if it does not exist */ export declare function writeIfNotExist(filepath: string, bytes: Uint8Array): Promise<boolean>; /** Remove a file if it exists */ export declare function removeFile(path: string): Promise<boolean>; export declare function readFile(path: string): Promise<Uint8Array | null>; export declare function readFileNames(folderPath: string): Promise<string[]>; //# sourceMappingURL=file.d.ts.map