import { SupportedFrameworkName, ServeHandlerOptions } from './index.js'; import 'json-schema-to-ts'; import 'ajv'; declare const frameworkName: SupportedFrameworkName; /** * In Next.js, serve and register any declared workflows with Echo, making * them available to be triggered by events. * * Supports Next.js 12+, both serverless and edge. * * @example Next.js <=12 or the pages router can export the handler directly * ```ts * export default serve({ client: echo }); * ``` * * @example Next.js >=13 with the `app` dir must export individual methods * ```ts * export const { GET, POST, PUT } = serve({ client: echo }); * ``` */ declare const serve: (options: ServeHandlerOptions) => any; export { frameworkName, serve };