/** * An adapter for Hono to serve and register any declared functions with * Inngest, making them available to be triggered by events. * * @example * ```ts * const handler = serve({ * client: inngest, * functions * }); * * app.use('/api/inngest', async (c) => { * return handler(c); * }); * ``` * * @module */ import { type Context } from "hono"; import { type ServeHandlerOptions } from "./components/InngestCommHandler.js"; import { type SupportedFrameworkName } from "./types.js"; /** * The name of the framework, used to identify the framework in Inngest * dashboards and during testing. */ export declare const frameworkName: SupportedFrameworkName; /** * Using Hono, serve and register any declared functions with Inngest, * making them available to be triggered by events. * * @example * ```ts * const handler = serve({ * client: inngest, * functions * }); * * app.use('/api/inngest', async (c) => { * return handler(c); * }); * ``` * * @public */ export declare const serve: (options: ServeHandlerOptions) => ((c: Context) => Promise); //# sourceMappingURL=hono.d.ts.map