/** * In-memory file output adapter for browser environments. * Replaces filesystem writes with Map storage. * Implements OutputAdapter interface for compatibility with shared generators. */ import { OutputAdapter } from '../../codegen/output/types'; export declare class BrowserOutput implements OutputAdapter { private files; /** * Write a file to memory. * @param path - The file path (e.g., 'src/models/User.ts') * @param content - The file content */ write(path: string, content: string): Promise; /** * No-op for browser - directories are virtual. */ mkdir(_dirPath: string, _options?: { recursive?: boolean; }): Promise; /** * Get all file paths that were written. * Implements OutputAdapter interface. */ getWrittenFiles(): string[]; /** * Get all files with their content. * Implements OutputAdapter interface. */ getAllFiles(): Record; /** * Read a file from memory. * @param path - The file path * @returns The file content, or undefined if not found */ read(path: string): string | undefined; /** * Get all files as a Record. * @deprecated Use getAllFiles() instead for OutputAdapter compatibility * @returns A copy of all files as Record */ getAll(): Record; /** * Clear all files from memory. */ clear(): void; /** * Check if a file exists. * @param path - The file path * @returns True if the file exists */ has(path: string): boolean; /** * Delete a specific file. * @param path - The file path * @returns True if the file was deleted, false if it didn't exist */ delete(path: string): boolean; /** * Get all file paths. * @deprecated Use getWrittenFiles() instead for OutputAdapter compatibility * @returns Array of file paths */ getPaths(): string[]; /** * Get the number of files. */ get size(): number; }