UNPKG

rawi

Version:

Rawi (راوي) is the developer-friendly AI CLI that brings the power of 11 major AI providers directly to your terminal. With seamless shell integration, persistent conversations, and 200+ specialized prompt templates, Rawi transforms your command line into

37 lines (35 loc) 1.81 kB
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 };