import { ReentryStatus } from './models'; export interface FileSystem { pathExists(filePath: string): Promise; ensureDir(dirPath: string): Promise; readFile(filePath: string, encoding: 'utf8'): Promise; writeFile(filePath: string, content: string, encoding: 'utf8'): Promise; move(src: string, dest: string, options: { overwrite: boolean; }): Promise; remove(filePath: string): Promise; } export declare class FileManager { private readonly fs; constructor(fs?: FileSystem); ensureDirForFile(filePath: string): Promise; readFileIfExists(filePath: string): Promise; writeFileIfChanged(filePath: string, content: string): Promise; /** * Writes both JSON and Markdown status files as a single operation. * Best-effort atomicity: either both are updated, or any partial update is rolled back. */ writeStatusFiles(config: any, status: ReentryStatus): Promise<{ changed: boolean; }>; loadStatus(config: any): Promise; writeStatusJson(config: any, status: ReentryStatus): Promise; writeReentryMarkdown(config: any, status: ReentryStatus): Promise; } //# sourceMappingURL=file-manager.d.ts.map