import { CodeRW, CodeDir } from '@iteria-app/generator'; import { URI } from 'vscode-uri'; import { VSCodeFSTransferableError } from '../vscode/errors'; export interface DirectoryFiles { fileName?: string; filePath?: string; fileType?: 'file' | 'dir'; } export default class WriterFetchFS implements CodeRW, CodeDir { private fsPort; constructor(fsPort: number); setPort(fsPort: number): void; readFile(path: string, encoding?: string): Promise; writeFile(path: string, data: string): Promise; renameFile(oldPath: string, newPath: string): Promise; deleteFiles(files: string[]): Promise; deleteFile(path: string): Promise; readDirectory(path: string, recursive?: boolean, extensions?: readonly string[], exclude?: readonly string[], include?: readonly string[], depth?: number): Promise; createDirectory(uri: URI): Promise; createDirectoryObject(response: string): DirectoryFiles[]; }