import { isUniqueViolation } from '@stacksjs/orm'; import type { PermissionRecord, RbacStore, RoleRecord } from './rbac'; /** * Swallow unique-constraint violations. Anything else is re-thrown so a * "connection lost" mid-INSERT doesn't get silently treated as * "already assigned". * * Exported for direct unit testing — the live pivot helpers below also use it. */ export declare function swallowDuplicate(err: unknown): void; /** * Map a raw DB row to a typed record. Both `roles` and `permissions` share * the same shape, so one mapper covers both — the call site provides the * generic. Exported for unit testing. */ export declare function toRecord(row: Record | undefined): T | null; export declare function createBqbRbacStore(): RbacStore; export { isUniqueViolation };