import type { Runtime, FileSystem, Path, OS, Process, ChildProcess, FileStat } from './types'; import { RuntimeType } from './types'; export declare class NodeFileSystem implements FileSystem { readFile(path: string, encoding?: BufferEncoding): Promise; writeFile(path: string, data: string, encoding?: BufferEncoding): Promise; readDir(path: string): Promise; exists(path: string): Promise; mkdir(path: string, options?: { recursive?: boolean; }): Promise; rm(path: string, options?: { recursive?: boolean; }): Promise; stat(path: string): Promise; rename(oldPath: string, newPath: string): Promise; watch(path: string, callback: (event: string, filename: string) => void): void; } export declare class NodePath implements Path { join(...paths: string[]): string; resolve(...paths: string[]): string; dirname(pathStr: string): string; basename(pathStr: string): string; extname(pathStr: string): string; isAbsolute(pathStr: string): boolean; normalize(path: string): string; relative(from: string, to: string): string; } export declare class NodeRuntime implements Runtime { readonly runtimeType = RuntimeType.NODE; fs: NodeFileSystem; path: NodePath; os: OS; process: Process; childProcess: ChildProcess; }