import { DirectoryEntry } from './DirectoryEntry.js'; import { Workspace } from './Workspace.js'; export declare class SubWorkspace implements Workspace { readonly subpath: string; readonly workspace: Workspace; constructor(subpath: string, workspace: Workspace); writeFile(subpath: string, data: string): Promise; readFile(subpath: string): Promise; exists(subpath: string): Promise; rename(oldPath: string, newPath: string): Promise; mkdir(subpath: string, opts?: { recursive: boolean; }): Promise; rmdir(subpath: string, opts: { recursive: boolean; }): Promise; readdir(subpath: string): Promise; appendFile(subpath: string, data: string): Promise; rm(subpath: string): Promise; exec(command: string, args?: string[]): Promise<{ exitCode: number; stdout: string; stderr: string; }>; private toSubpath; writeFileSync(subpath: string, data: string): void; readFileSync(subpath: string): string; }