import type { IR } from '../../ir.js'; import type { ProjectionArtifact, ProjectionDiagnostic } from '../interface.js'; export type WebhookGeneratorOptions = { /** Import specifier for the createManifestRuntime companion (same as the cron/dispatcher routes). */ runtimeImportPath: string; /** Next.js app dir (e.g. 'app/api'). Only its `app` root matters here — see appRouterRoot. */ appDir: string; }; /** * Emit one Next.js App Router route per declared webhook, each served at the * webhook's DECLARED absolute path (independent of the api appDir). The route * bridges the framework Request into the frozen WebhookHttpRequest shape (raw * body, headers, query) and delegates to handleWebhookRequest, which owns * signature verification, idempotency, payload transform, and command dispatch. * * Emits nothing (with an info diagnostic) when the IR declares no webhooks, so * the common program does not get an empty surface. */ export declare function generateWebhookRoutes(ir: IR, options: WebhookGeneratorOptions): { artifacts: ProjectionArtifact[]; diagnostics: ProjectionDiagnostic[]; }; //# sourceMappingURL=webhook-generator.d.ts.map