UNPKG

@synet/net

Version:

Network abstraction layer for Synet. visit https://syntehtism.ai for more information.

13 lines (12 loc) 469 B
import type { FileSystem } from "./filesystem.interface"; /** * In-memory file system implementation using memfs */ export declare class MemFileSystem implements FileSystem { exists(path: string): Promise<boolean>; readFile(path: string): Promise<string>; writeFile(path: string, data: string): Promise<void>; deleteFile(path: string): Promise<void>; ensureDir(path: string): Promise<void>; chmod(path: string, mode: number): Promise<void>; }