declare class FileReaderError extends Error { readonly code?: string | undefined; constructor(message: string, code?: string | undefined); } declare class FileNotFoundError extends FileReaderError { constructor(filePath: string); } declare class FileSizeError extends FileReaderError { constructor(filePath: string, actualSize: number, maxSize: number); } declare class UnsupportedFileTypeError extends FileReaderError { constructor(fileType: string, filePath: string); } declare class FileParsingError extends FileReaderError { constructor(filePath: string, reason: string); } declare class CorruptedFileError extends FileReaderError { constructor(filePath: string, details?: string); } declare class EncryptedFileError extends FileReaderError { constructor(filePath: string); } declare class FilePermissionError extends FileReaderError { constructor(filePath: string); } declare class NoReaderAvailableError extends FileReaderError { constructor(fileType: string); } declare function validateFilePath(filePath: string): void; declare function validateFileSize(size: number, maxSize: number, filePath: string): void; declare function validateFileExtension(filePath: string, expectedExtensions: string[]): boolean; declare function sanitizeFileName(fileName: string): string; declare function createUserFriendlyError(error: Error, filePath: string): string; declare function logFileReaderError(error: Error, filePath: string, verbose?: boolean): void; export { CorruptedFileError, EncryptedFileError, FileNotFoundError, FileParsingError, FilePermissionError, FileReaderError, FileSizeError, NoReaderAvailableError, UnsupportedFileTypeError, createUserFriendlyError, logFileReaderError, sanitizeFileName, validateFileExtension, validateFilePath, validateFileSize };