export interface NamedWritableStream { readonly name: string; readonly stream: WritableStream; } export interface FileService { readonly baseDir: string; create(fname: string): Promise; readFileString(fname: string): Promise; writeFileString(fname: string, content: string): Promise; abs(fname: string): string; join(...paths: string[]): string; relative(from: string, to?: string): string; dirname(fname: string): string; basename(fname: string): string; // nodeImport(fname: string): string; isAbsolute(fname: string): boolean; }