/** * **Did the database refuse a row because its key is taken?** - a unique index said no. postgres answers `23505` * (on the error or its `driverError`), sqlite `UNIQUE constraint failed`, mysql `ER_DUP_ENTRY` (1062). * * A unique index is the last judge of what a lock cannot guard (two gates letting the same trailer in at once): the * caller turns its "no" into a named refusal rather than a 500. Lifted on 2026-11-18 from figure-service and the yard, * which each read the codes their own way. */ export declare function isUniqueViolation(error: unknown): boolean;