import type { FilesystemManager } from "./FilesystemManager";
import type { FileStats, SearchResult } from "@edenapp/types";
/**
 * 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?: BufferEncoding;
    }): Promise<string>;
    /**
     * Write content to a file, creating directories if needed.
     */
    handleWriteFile(args: {
        path: string;
        content: string;
        encoding?: BufferEncoding;
    }): Promise<void>;
    /**
     * Check if a file or directory exists.
     */
    handleExists(args: {
        path: string;
    }): Promise<boolean>;
    /**
     * Create a directory and any necessary parent directories.
     */
    handleMkdir(args: {
        path: string;
    }): Promise<void>;
    /**
     * List contents of a directory.
     */
    handleReaddir(args: {
        path: string;
    }): Promise<string[]>;
    /**
     * Get file or directory statistics.
     */
    handleStat(args: {
        path: string;
    }): Promise<FileStats>;
    /**
     * Search for files and directories using glob patterns.
     */
    handleSearch(args: {
        path: string;
        pattern: string;
        limit?: number;
    }): Promise<SearchResult[]>;
    /**
     * Delete a file or directory.
     * For directories, removes recursively.
     */
    handleDelete(args: {
        path: string;
    }): Promise<void>;
}
//# sourceMappingURL=FilesystemHandler.d.ts.map