export declare class DatabaseErrorHandler { /** True for a database error caused by the request (SQLSTATE class 22/23/44) -> HTTP 400; in production the detail/table/constraint context is suppressed so no row values or schema internals leak. */ static isDatabaseClientError(opts: { error: Error; isProduction: boolean; }): { isClientError: boolean; message?: string; }; /** True for a transient, retryable transaction conflict (serialization failure / deadlock - SQLSTATE 40001 / 40P01) -> HTTP 409: the client can retry the same request. */ static isRetryableDatabaseError(opts: { error: Error; }): boolean; } //# sourceMappingURL=database.handler.d.ts.map