import type { InboundAdapter } from "./index.mjs"; /** Cloudflare Email Workers inbound adapter. * * The CF Email Worker handler gets a \`message\` object; the route adapter * here also accepts a plain \`Request\` whose \`x-cf-email-raw\` header * signals that the body is the raw MIME. Use it when proxying CF Email * Workers through a normal \`fetch\` handler — otherwise call * \`parseEmail(await message.raw())\` directly in your Worker. */ export interface CloudflareInboundOptions { /** Header name that carries a pre-agreed shared secret. Default: none — * verification is disabled unless set. */ secretHeader?: string; secret?: string; } export default function cloudflareInbound(options?: CloudflareInboundOptions): InboundAdapter;