import { type BillingAdapter } from "../types.js"; import type { Notifier, Notify } from "./index.js"; /** * Build the fire-and-forget `Notify` every call site inside the library holds. * * Two things happen here that deliberately do NOT happen at the call sites: * * 1. **Recipients are resolved.** A call site knows the workspace and, at most, a member id; * turning that into addresses is a membership question, and answering it eight times is * how eight answers drift. It also has to be async, and a call site that awaited it would * be blocking a metered call on a WorkOS round trip to send an email. * 2. **Failure is swallowed, once.** Every notification describes something that ALREADY * happened — the invitation exists, the credit is granted, the call was metered. A * delivery that fails must not undo it. One `.catch()` here beats eight, where the ninth * call site is the one that forgets. */ export declare function createEmitter(adapter: BillingAdapter, notifier: Notifier | undefined, onError?: (e: unknown) => void): Notify | undefined; //# sourceMappingURL=emit.d.ts.map