import FilesystemWatcher from './filesystemWatcher' export const filesystemService = 'filesystem' export interface FileInfo { isDir: boolean name: string } export interface FilesystemManager { readonly write: (path: string, content: string) => Promise readonly writeBytes: (path: string, content: Uint8Array) => Promise readonly read: (path: string) => Promise readonly readBytes: (path: string) => Promise readonly remove: (path: string) => Promise readonly list: (path: string) => Promise readonly makeDir: (path: string) => Promise readonly watchDir: (path: string) => FilesystemWatcher }