/** * File Reader Error Classes * * Extends base error classes for file reader specific errors. * Part of Layer 2 (Security & Resource Controls) */ import { FileOrganizerError } from "../errors.js"; /** * Base error for file read operations */ export declare class FileReadError extends FileOrganizerError { readonly filePath: string; constructor(message: string, filePath: string, code?: string, suggestion?: string); } /** * Error thrown when file exceeds maximum size limit * Part of Layer 2 (Resource Controls) */ export declare class FileTooLargeError extends FileReadError { readonly fileSize: number; readonly maxAllowed: number; constructor(filePath: string, fileSize: number, maxAllowed: number); } /** * Error thrown when path validation fails * Part of Layer 1 (Input Validation & Sanitization) */ export declare class PathValidationError extends FileReadError { readonly reason: string; readonly validationLayer: number; constructor(filePath: string, reason: string, validationLayer: number); } /** * Error thrown when rate limit is exceeded * Part of Layer 2 (Security & Resource Controls) */ export declare class RateLimitError extends FileReadError { readonly retryAfter: number; readonly limitType: "perMinute" | "perHour"; constructor(filePath: string, retryAfter: number, limitType: "perMinute" | "perHour"); } /** * Error thrown when file access is denied * Part of Layer 1 & 2 (Validation and Security) */ export declare class FileAccessDeniedError extends FileReadError { readonly reason: string; readonly resolvedPath?: string | undefined; constructor(filePath: string, reason: string, resolvedPath?: string | undefined); } /** * Error thrown when file is not found */ export declare class FileNotFoundError extends FileReadError { constructor(filePath: string); } /** * Error thrown when read operation is aborted */ export declare class FileReadAbortedError extends FileReadError { readonly abortReason?: string | undefined; constructor(filePath: string, abortReason?: string | undefined); } /** * Error thrown when an invalid encoding is specified */ export declare class InvalidEncodingError extends FileReadError { readonly encoding: string; constructor(filePath: string, encoding: string); } //# sourceMappingURL=errors.d.ts.map