export type ContentStorageAdapterErrorCode = 'CONTENT_STORAGE_ADAPTER_ERROR' | 'CONTENT_NOT_FOUND' | 'DUPLICATE_SLUG' | 'OPTIMISTIC_LOCK_FAILED' | 'STORAGE_OPERATION_FAILED' | 'INVALID_INPUT'; export interface ContentStorageAdapterErrorOptions { cause?: Error; code?: ContentStorageAdapterErrorCode; context?: Record; } export declare class ContentStorageAdapterError extends Error { readonly code: ContentStorageAdapterErrorCode; readonly context?: Record; constructor(message: string, options?: ContentStorageAdapterErrorOptions); } /** * Error thrown when content is not found or already deleted. */ export declare class ContentNotFoundError extends ContentStorageAdapterError { constructor(id: string, options?: { cause?: Error; context?: Record; }); } /** * Error thrown when a slug already exists. */ export declare class DuplicateSlugError extends ContentStorageAdapterError { constructor(slug: string, options?: { cause?: Error; context?: Record; }); } /** * Error thrown when optimistic locking fails. */ export declare class OptimisticLockError extends ContentStorageAdapterError { constructor(id: string, options?: { cause?: Error; context?: Record; }); } //# sourceMappingURL=errors.d.ts.map