/** * Hono Middleware * * HTTP request middleware for Hono that uses the core handler. * * @module */ import type { MiddlewareHandler } from 'hono'; import type { Bridge } from '@johnhenry/aimatey-core'; import type { HTTPListenerOptions } from '@johnhenry/aimatey-http-core'; /** * Create Hono middleware for handling AI chat requests * * @param bridge - Bridge instance * @param options - HTTP listener options * @returns Hono middleware function * * @example * ```typescript * import { Hono } from 'hono'; * import { HonoMiddleware } from '@johnhenry/aimatey-http/hono'; * * const app = new Hono(); * const bridge = new Bridge(frontend, backend); * * // Add AI chat middleware * app.post('/v1/messages', HonoMiddleware(bridge, { * cors: true, * streaming: true, * })); * * export default app; * ``` */ export declare function HonoMiddleware(bridge: Bridge, options?: HTTPListenerOptions): MiddlewareHandler; //# sourceMappingURL=middleware.d.ts.map