/** * File utility functions */ /** * Calculate hash of file content */ export declare function hashContent(content: string): string; /** * Check if a file is binary by examining its content */ export declare function isBinaryContent(content: Buffer, sampleSize?: number): boolean; /** * Check if a file is binary by extension */ export declare function isBinaryFile(filePath: string): boolean; /** * Check if a file is an image */ export declare function isImageFile(filePath: string): boolean; /** * Get file size in bytes */ export declare function getFileSize(filePath: string): Promise; /** * Check if file exceeds size limit */ export declare function isFileTooLarge(filePath: string, maxSize: number): Promise; /** * Read file content as string */ export declare function readFileContent(filePath: string): Promise; /** * Read file content as buffer */ export declare function readFileBuffer(filePath: string): Promise; /** * Check if file should be excluded based on name patterns */ export declare function shouldExcludeFile(filePath: string): boolean; /** * Detect language from file extension */ export declare function detectLanguage(filePath: string): string | null; /** * Format file size for display */ export declare function formatFileSize(bytes: number): string; //# sourceMappingURL=file-utils.d.ts.map