import { Volume } from 'memfs'; import { NodeFileSystem } from './nodeFileSystem'; /** * Memory file system that instead of writing to disk writes to memory and stores them in a JSON object. */ export declare class MemoryFileSystem extends NodeFileSystem { protected get memFs(): Volume; constructor(files?: { [fileName: string]: string | Buffer; }); /** * Get the file system as a buffer and return it. * @returns Serialized file system */ getBuffer(): Buffer; /** * Instantiate a new memory file system from a buffer object containing the file system. * @param buffer Buffer to read the file system from previously written by `getBuffer` * @returns Memory file system */ static fromBuffer(buffer: Buffer): MemoryFileSystem; } //# sourceMappingURL=memoryFileSystem.d.ts.map