/** * File System Reading Utilities using fs-extra * Replaced with fs-extra for better maintainability and industry-standard implementation * * Migration Guide: * - safeReadFile() -> fs.readFile() with error handling * - safeReadFileBuffer() -> fs.readFile() with error handling * - Use fs-extra directly for advanced use cases */ import fs from 'fs-extra'; /** * Safely reads a file as UTF-8 text using fs-extra * @param filePath - Path to read * @returns File contents as string, or null if failed */ export declare function safeReadFile(filePath: string): Promise; /** * Safely reads a file as UTF-8 text (sync version - DEPRECATED: use async version) * @param filePath - Path to read * @returns File contents as string, or null if failed * @deprecated Use safeReadFile instead for better scalability */ export declare function safeReadFileSync(filePath: string): string | null; /** * Safely reads a file as buffer using fs-extra * @param filePath - Path to read * @returns File contents as buffer, or null if failed */ export declare function safeReadFileBuffer(filePath: string): Promise; /** * Safely reads a file as buffer (sync version - DEPRECATED: use async version) * @param filePath - Path to read * @returns File contents as buffer, or null if failed * @deprecated Use safeReadFileBuffer instead for better scalability */ export declare function safeReadFileBufferSync(filePath: string): Buffer | null; /** * Direct access to fs-extra for advanced use cases * For new code, prefer using fs-extra directly */ export { fs }; //# sourceMappingURL=fileReading.d.ts.map