/** * MemoryAdapter - Output adapter for browser environments. * Stores files in memory instead of writing to disk. */ import { OutputAdapter, OutputAdapterOptions } from './types'; /** * MemoryAdapter stores files in memory using a Map. * Used in browser context for in-memory code generation. */ export declare class MemoryAdapter implements OutputAdapter { private files; private basePath; constructor(options?: OutputAdapterOptions); /** * Write content to memory. */ write(filePath: string, content: string): Promise; /** * No-op for memory adapter - directories are virtual. */ mkdir(_dirPath: string, _options?: { recursive?: boolean; }): Promise; /** * Get all file paths that were written. */ getWrittenFiles(): string[]; /** * Get all files with their content. */ getAllFiles(): Record; /** * Read a file from memory. * @param filePath - The file path * @returns The file content, or undefined if not found */ read(filePath: string): string | undefined; /** * Clear all files from memory. */ clear(): void; /** * Check if a file exists. */ has(filePath: string): boolean; /** * Get the number of files. */ get size(): number; /** * Resolve a file path with the base path. */ private resolvePath; }