import type { FileStats, FilesystemTransferArgs, SearchResult } from "@edenapp/types"; import type { FilesystemManager } from "./FilesystemManager"; /** * FilesystemHandler - Thin IPC layer for filesystem operations. * All business logic lives in FilesystemManager. */ export declare class FilesystemHandler { private fsManager; constructor(fsManager: FilesystemManager); /** * Read the contents of a file. */ handleReadFile(args: { path: string; encoding?: string; }): Promise; /** * Read the raw contents of a file. */ handleReadBinaryFile(args: { path: string; }): Promise; /** * Write content to a file, creating directories if needed. */ handleWriteFile(args: { path: string; content: string; encoding?: string; }): Promise; /** * Write raw bytes to a file, creating directories if needed. */ handleWriteBinaryFile(args: { path: string; content: Uint8Array; }): Promise; /** * Check if a file or directory exists. */ handleExists(args: { path: string; }): Promise; /** * Create a directory and any necessary parent directories. */ handleMkdir(args: { path: string; }): Promise; /** * List contents of a directory. */ handleReaddir(args: { path: string; }): Promise; /** * Get file or directory statistics. */ handleStat(args: { path: string; }): Promise; handleWatch(args: { path: string; _callerWebContentsId?: number; }): Promise<{ watchId: string; }>; handleUnwatch(args: { watchId: string; _callerWebContentsId?: number; }): void; /** * Resolve an Eden path to the underlying OS path. */ handleResolve(args: { path: string; }): Promise<{ realPath: string; }>; /** * Search for files and directories using glob patterns. */ handleSearch(args: { path: string; pattern: string; limit?: number; }): Promise; /** * Delete a file or directory. * For directories, removes recursively. */ handleDelete(args: { path: string; }): Promise; /** * Copy a file or directory. * Directories are copied recursively. * Existing destinations are replaced only when overwrite is true. */ handleCopy(args: FilesystemTransferArgs): Promise; /** * Move or rename a file or directory. * Existing destinations are replaced only when overwrite is true. */ handleMove(args: FilesystemTransferArgs): Promise; } //# sourceMappingURL=FilesystemHandler.d.ts.map