import { RequestHandler } from 'express'; import { W as WebhookMiddlewareOptions } from '../types-BMzVSd6w.js'; import '../types-D2XsCR5R.js'; import '../action-items-CC9yUxHY.js'; /** * Create an Express middleware handler for Fireflies webhooks. * * Requires `express.raw({ type: 'application/json' })` middleware before this handler * to receive the raw body for signature verification. * * @param options - Webhook middleware options * @returns Express request handler * * @example * ```typescript * import express from 'express'; * import { createWebhookHandler } from 'fireflies-api/express'; * * const app = express(); * * app.post('/webhooks/fireflies', * express.raw({ type: 'application/json' }), * createWebhookHandler({ * secret: process.env.WEBHOOK_SECRET!, * apiKey: process.env.FIREFLIES_API_KEY, * onTranscriptionCompleted: async ({ payload, transcript }) => { * console.log(`Transcript ready: ${transcript?.title}`); * }, * }) * ); * ``` */ declare function createWebhookHandler(options: WebhookMiddlewareOptions): RequestHandler; export { createWebhookHandler };