import { FileSystemInterface } from './FileSystemInterface.js'; /** * Local file system implementation * * This class implements the FileSystemInterface using local file system operations. */ export declare class LocalFileSystem implements FileSystemInterface { private baseDir; /** * Creates a new LocalFileSystem instance * * @param baseDir - Base directory for file operations */ constructor(baseDir: string); /** * Gets the full path for a relative path * If an absolute path is provided, it is returned as-is * * @param relativePath - Relative path (or absolute path) * @returns Full path */ private getFullPath; /** * Checks if a file or directory exists * * @param relativePath - Relative path to check * @returns True if the path exists, false otherwise */ fileExists(relativePath: string): Promise; /** * Checks if a path is a directory * * @param relativePath - Relative path to check * @returns True if the path is a directory, false otherwise */ isDirectory(relativePath: string): Promise; /** * Ensures a directory exists, creating it if necessary * * @param relativePath - Relative path to the directory */ ensureDirectory(relativePath: string): Promise; /** * Reads a file's contents * * @param relativePath - Relative path to the file * @returns The file contents as a string */ readFile(relativePath: string): Promise; /** * Writes content to a file * * @param relativePath - Relative path to the file * @param content - Content to write */ writeFile(relativePath: string, content: string): Promise; /** * Appends content to a file * * @param relativePath - Relative path to the file * @param content - Content to append */ appendFile(relativePath: string, content: string): Promise; /** * Lists files in a directory * * @param relativePath - Relative path to the directory * @returns Array of file names */ listFiles(relativePath: string): Promise; /** * Deletes a file or directory * * @param relativePath - Relative path to delete */ delete(relativePath: string): Promise; /** * Copies a file or directory * * @param sourceRelativePath - Relative source path * @param destRelativePath - Relative destination path */ copy(sourceRelativePath: string, destRelativePath: string): Promise; /** * Gets the base directory for file operations * * @returns The base directory path */ getBaseDir(): string; } //# sourceMappingURL=LocalFileSystem.d.ts.map