/** * Error types and classes */ export declare class DDPError extends Error { code: string; details?: Record | undefined; constructor(message: string, code: string, details?: Record | undefined); } export declare class DatabaseError extends DDPError { query?: string | undefined; constructor(message: string, query?: string | undefined, details?: Record); } export declare class ValidationError extends DDPError { field: string; constructor(message: string, field: string, details?: Record); } export declare class FileError extends DDPError { filePath: string; constructor(message: string, filePath: string, details?: Record); } export type TErrorCode = 'DATABASE_ERROR' | 'VALIDATION_ERROR' | 'FILE_ERROR' | 'UNKNOWN_ERROR'; export type TErrorSeverity = 'low' | 'medium' | 'high' | 'critical'; //# sourceMappingURL=errors.d.ts.map