/** * StrictDB Error System — Normalized errors with self-correcting fix instructions * * All database errors are caught, normalized into StrictDBError instances, * and include AI-readable fix instructions for automatic recovery. */ import type { Backend, StrictErrorCode } from './types.js'; export { mapMongoError } from './errors/mongo-errors.js'; export { mapSqlError } from './errors/sql-errors.js'; export { mapElasticError } from './errors/elastic-errors.js'; export { unknownMethodError, unknownOperatorError, collectionNotFoundError } from './errors/helpers.js'; export declare class StrictDBError extends Error { readonly code: StrictErrorCode; readonly backend: Backend; readonly originalError: unknown; readonly collection?: string; readonly operation?: string; readonly retryable: boolean; readonly timestamp: Date; readonly fix: string; constructor(opts: { code: StrictErrorCode; message: string; fix: string; backend: Backend; originalError?: unknown; collection?: string; operation?: string; retryable?: boolean; }); } export declare const ERROR_RETRYABLE: Record; export declare function mapNativeError(backend: Backend, err: unknown, collection?: string, operation?: string): StrictDBError; //# sourceMappingURL=errors.d.ts.map