/** * Portable filesystem interface. Core logic imports this port, not node:fs. * Node adapter implements it; tests can substitute a mock. */ export interface FileSystem { readFile(path: string, encoding: "utf-8"): Promise; readFile(path: string): Promise; readdir(path: string): Promise; writeFile(path: string, data: string, encoding: "utf-8"): Promise; appendFile(path: string, data: string, encoding: "utf-8"): Promise; mkdir(path: string, options: { recursive: true; }): Promise; stat(path: string): Promise<{ size: number; }>; readFileSync(path: string, encoding: "utf-8"): string; } //# sourceMappingURL=filesystem.d.ts.map