import { VSCodeFSTransferableError } from './../vscode/errors'; import { CodeRW, CodeDir } from '@iteria-app/generator'; import { URI } from 'vscode-uri'; import ChangeHistory from './ChangeHistory'; export default class WatcherProxyFS implements CodeRW, CodeDir { private history; private delegate; constructor(delegate: CodeRW & CodeDir, history: ChangeHistory); readFile(path: string, encoding?: string, injectMode?: string): Promise; writeFile(path: string, data: string, options?: any): Promise; renameFile(oldPath: string, newPath: string): Promise; deleteFile(path: string): Promise; deleteFiles(files: { path: string; }[]): Promise; readDirectory(path: string, recursive?: boolean, extensions?: readonly string[], exclude?: readonly string[], include?: readonly string[], depth?: number, injectMode?: string): Promise<{ fileName: string; filePath: string; fileType: 'file' | 'dir'; }[] | undefined>; createDirectory(uri: URI): Promise; private writeHistoryFile; private _watcherRenameFile; private _watcherWriteFile; private _watcherDeleteFile; private _watcherCreateDirectory; }