import { Correlation, Events, FileSystem, FileSystemReadSync } from './api'; import { Directory, DirectoryContent, File, ShallowDirectory, SimpleStats } from './model'; import { InternalEventsEmitter } from './utils'; export declare namespace MemoryFileSystem { interface Options { content?: DirectoryContent; model?: Directory; } } export declare class MemoryFileSystem implements FileSystemReadSync, FileSystem { baseUrl: string; static addContent(fs: MemoryFileSystem, content: DirectoryContent, path?: string): void; readonly events: InternalEventsEmitter; protected readonly root: Directory; constructor(baseUrl?: string, options?: MemoryFileSystem.Options); protected emit(type: S, event: Events[S]): void; saveFile(fullPath: string, newContent: string, correlation?: Correlation): Promise; deleteFile(fullPath: string, correlation?: Correlation): Promise; deleteDirectory(fullPath: string, recursive?: boolean, correlation?: Correlation): Promise; ensureDirectory(fullPath: string, correlation?: Correlation): Promise; loadTextFile(fullPath: string): Promise; loadDirectoryTree(fullPath?: string): Promise; loadDirectoryChildren(fullPath: string): Promise<(File | ShallowDirectory)[]>; stat(fullPath: string): Promise; saveFileSync(fullPath: string, newContent: string, correlation?: Correlation): Correlation; deleteFileSync(fullPath: string, correlation?: Correlation): Correlation; deleteDirectorySync(fullPath: string, recursive?: boolean, correlation?: Correlation): Correlation; ensureDirectorySync(fullPath: string, correlation?: Correlation): Correlation; protected findNode(fullPath: string): Directory | File; protected getDir(fullPath: string): Directory; loadTextFileSync(fullPath: string): string; loadDirectoryContentSync(fullPath?: string): DirectoryContent; loadDirectoryTreeSync(fullPath?: string): Directory; loadDirectoryChildrenSync(fullPath: string): (File | ShallowDirectory)[]; statSync(fullPath: string): SimpleStats; private _ensureDirectorySync; private recursiveEmitDeletion; } //# sourceMappingURL=memory-fs.d.ts.map