UNPKG

573 BTypeScriptView Raw
1import { FileSystem, Stats, MessageHandler, Dirent } from '@fimbul/ymir';
2export declare class NodeFileSystem implements FileSystem {
3 private logger;
4 static normalizePath(path: string): string;
5 constructor(logger: MessageHandler);
6 normalizePath(path: string): string;
7 readFile(file: string): string;
8 readDirectory(dir: string): Array<string | Dirent>;
9 stat(path: string): Stats;
10 realpath(path: string): string;
11 writeFile(file: string, content: string): void;
12 deleteFile(path: string): void;
13 createDirectory(dir: string): void;
14}