import { F as FileSystemAdapter, P as PathnameService } from '../LLMail-BxCNsAGO.js'; import '../utils/logger.js'; import 'winston'; import '../errors/errors.js'; /** * Centralizes all filesystem operations with atomic guarantees and proper error handling. * This service is responsible for: * - Atomic file operations * - Directory management * - File search operations * - Temporary file handling * - Backup management */ declare class FileService { private fs; private pathnameService; constructor(fs: FileSystemAdapter, pathnameService: PathnameService); readFile(filePath: string): Promise; writeFile(filePath: string, content: string): Promise; moveFile(sourcePath: string, targetPath: string): Promise; atomicMove(sourcePath: string, targetPath: string, content: string): Promise; withTempFile(filePath: string, operation: (tempPath: string) => Promise): Promise; withBackup(filePath: string, operation: () => Promise): Promise; ensureDir(dirPath: string): Promise; ensureParentDir(filePath: string): Promise; findFile(filename: string, searchPaths: string[]): Promise; findFiles(predicate: (filename: string) => boolean, searchPaths: string[]): Promise; } export { FileService };