import { APIContext } from 'astro'; /** * @junctionjs/astro - Server-Side Collect Endpoint * * API endpoint that receives events from the client and forwards * them to server-side destinations. This is the "forward proxy" * pattern from the Tag Manager Evolved doc. * * Benefits: * - API keys for server-side destinations never touch the client * - Events can be enriched with server-side context (IP, geo) * - Acts as a first-party endpoint (no ad-blocker issues) * - Can batch and deduplicate before forwarding * * POST /api/collect * Body: { events: JctEvent[] } */ declare function POST(context: APIContext): Promise; export { POST };