import { j as RecordsError, P as PgError, ap as StaleWriteDetail } from './record-C3thPhpR.cjs'; /** The SQLSTATEs this package claims to understand. Exported for the guard. */ declare const MAPPED_SQLSTATES: string[]; /** What a person reads when the store cancelled a call at its statement timeout (57014, code `timed_out`). */ declare const TIMED_OUT_MESSAGE = "That took too long. Nothing was lost; try again."; declare function mapPgError(error: PgError, where: string): RecordsError; /** * Anything a host caught (a supabase-js error object, a thrown `Error`, a string) as the package's * refusal, through `mapPgError` — so a host service's `catch` speaks the same words as its doors. */ declare function mapThrownError(thrown: unknown, where: string): RecordsError; /** Pull the conflict out of a `stale_write`, when the store sent one. */ declare function staleWriteDetail(error: RecordsError): StaleWriteDetail | null; /** * HONEST-REFUSALS 1 — a member of an ARCHIVED organization is refused with the store's own sentence * ("This organization is archived, …") and DETAIL `organization_archived:`. The sentence * and the restore hint ride `message` and `hint` verbatim like every refusal; this reads the organization out * so a screen can offer "Restore" (the owner's `iam.organization_restore` door) instead of a dead end. * Null for every other refusal, including the non-member's "You are not a member of that organization". */ declare function archivedOrganizationId(error: RecordsError): string | null; export { MAPPED_SQLSTATES as M, TIMED_OUT_MESSAGE as T, archivedOrganizationId as a, mapThrownError as b, mapPgError as m, staleWriteDetail as s };