import { Kysely } from "kysely"; import { AuditEventInsert } from "@authhero/adapter-interfaces"; import { Database } from "../db"; /** * Insert a single outbox event using the provided Kysely instance — which may * be a transaction (`trx`). Shared by `createOutboxEvent` (standalone insert) * and the user write adapters, which call it inside their own transaction so * the event row commits together with the business row (issue #1057). */ export declare function insertOutboxEvent(db: Kysely, tenantId: string, id: string, event: AuditEventInsert): Promise; export declare function createOutboxEvent(db: Kysely): (tenantId: string, event: AuditEventInsert) => Promise;