/** * email-adapter — stub email ChannelAdapter for Human Function delivery. * * This is a no-op stub with the correct LifecycleChannelAdapter interface. * The real email adapter (which sends transactional email via SES/Resend/etc.) * is implemented in the consuming application. * * The stub: * - `deliver()` logs the item to console (no actual email sent) * - `respond()` routes the response through the store (no channel-specific parsing) * * To implement a real email adapter, copy this stub and: * 1. Replace the `deliver` body with your email provider SDK call. * 2. Wire up an inbound webhook handler (e.g. Postmark inbound, Resend * webhook) that parses the reply and calls `emailAdapter.respond(id, res, store)`. * * @example * ```ts * import { emailAdapter } from 'human-in-the-loop' * import { adapterRegistry } from 'human-in-the-loop' * * adapterRegistry.register(emailAdapter) * * // Deliver a Human Function via email * await emailAdapter.deliver(item, store) * * // On reply webhook: * await emailAdapter.respond(item.id, { verb: 'approve', resolvedBy: 'person-alex' }, store) * ``` */ import type { LifecycleChannelAdapter } from '../lifecycle-channel-adapter.js'; /** * Stub email ChannelAdapter. * * deliver: logs the Human Function title + assignee to console. * No email is actually sent. * respond: routes the response through store.complete() — real lifecycle * transition enforced (claimed | in_progress → completed). */ export declare const emailAdapter: LifecycleChannelAdapter; //# sourceMappingURL=email-adapter.d.ts.map