import type { PgErrorFields } from './types'; /** * PostgreSQL SQLSTATE codes for the native constraint violations we surface as * public Constructive codes. */ export declare const SQLSTATE_TO_CODE: Record; /** SQLSTATE for a user-raised `RAISE EXCEPTION` without an explicit ERRCODE. */ export declare const RAISE_EXCEPTION_SQLSTATE = "P0001"; /** * Extract extended PostgreSQL error fields from an error-like object. Returns * `null` when the value does not look like a pg error (no `code`/`detail`/ * `where`). */ export declare function extractPgErrorFields(err: unknown): PgErrorFields | null;