/**
 * @fileoverview Email Send - Supabase Edge Function Factory
 * @description Wraps the shared email handler for Supabase Edge Functions.
 * Resolves Resend provider from env, adds auth context.
 *
 * @version 0.1.0
 * @since 0.1.0
 * @author AMBROISE PARK Consulting
 */
import type { EmailRouteConfig } from '@donotdev/core/server';
/**
 * Create a Supabase Edge Function handler for sending emails.
 * Requires RESEND_API_KEY environment variable.
 *
 * @param config - Email route configuration (templates, defaultFrom)
 * @returns `(req: Request) => Promise<Response>` handler
 *
 * @example
 * ```typescript
 * // supabase/functions/send-email/index.ts
 * import { createEmailFunction } from '@donotdev/functions/supabase';
 *
 * const handler = createEmailFunction({
 *   provider: 'resend',
 *   defaultFrom: 'Frabled <noreply@frabled.com>',
 *   templates: { 'order-confirmation': orderConfirmationTemplate },
 * });
 * Deno.serve(handler);
 * ```
 */
export declare function createEmailFunction(config: EmailRouteConfig): (req: Request) => Promise<Response>;
