/** * Custom error classes for repository operations */ /** * Base repository error class */ export declare class RepositoryError extends Error { readonly operation: string; readonly context?: Record; constructor(message: string, operation: string, context?: Record); } /** * Error thrown when a document is not found */ export declare class DocumentNotFoundError extends RepositoryError { constructor(resource: string, identifier: string, context?: Record); } /** * Error thrown when validation fails */ export declare class ValidationError extends RepositoryError { constructor(message: string, field?: string, context?: Record); }