/**
 * @fileoverview AI Chat - Supabase Edge Function Factory
 * @description Wraps the shared AI route handler for Supabase Edge Functions.
 * Uses Vercel AI SDK via createAIRoute for streaming and non-streaming.
 *
 * @version 0.1.0
 * @since 0.1.0
 * @author AMBROISE PARK Consulting
 */
import type { AIRouteConfig } from '@donotdev/core/server';
/**
 * Create a Supabase Edge Function handler for AI chat.
 *
 * @param config - AI route configuration
 * @returns `(req: Request) => Promise<Response>` handler
 *
 * @example
 * ```typescript
 * // supabase/functions/ai-chat/index.ts
 * import { createAIFunction } from '@donotdev/functions/supabase';
 *
 * const handler = createAIFunction({
 *   provider: 'anthropic',
 *   model: 'claude-sonnet-4-20250514',
 *   cost: { markup: 4.0, monthlyBudgetTokens: 500_000, showCostToUsers: false, displayCurrency: 'eur' },
 * });
 * Deno.serve(handler);
 * ```
 */
export declare function createAIFunction(config: AIRouteConfig): (req: Request) => Promise<Response>;
