/** * Deno Handler * * HTTP request handler for Deno that uses the core handler. * * @module */ import type { Bridge } from '@johnhenry/aimatey-core'; import type { HTTPListenerOptions } from '@johnhenry/aimatey-http-core'; /** * Create Deno HTTP handler for handling AI chat requests * * @param bridge - Bridge instance * @param options - HTTP listener options * @returns Deno HTTP handler function * * @example * ```typescript * import { DenoHandler } from '@johnhenry/aimatey-http/deno'; * * const bridge = new Bridge(frontend, backend); * * // Create handler * const handler = DenoHandler(bridge, { * cors: true, * streaming: true, * }); * * // Use with Deno.serve * Deno.serve({ port: 3000 }, handler); * ``` */ export declare function DenoHandler(bridge: Bridge, options?: HTTPListenerOptions): (request: Request, connInfo?: { remoteAddr?: { hostname?: string; }; }) => Promise; //# sourceMappingURL=handler.d.ts.map