import { Context, Hono } from "hono"; import { IInteractiveSession, ITransportAdapter } from "@robota-sdk/agent-interface-transport"; //#region src/routes.d.ts /** Callback that resolves an IInteractiveSession from the request context. */ type TSessionFactory = (c: Context) => IInteractiveSession | Promise; interface IAgentRoutesOptions { /** Resolve an IInteractiveSession per request (e.g., by auth token, session ID). */ sessionFactory: TSessionFactory; } /** * Create a Hono router with all agent HTTP endpoints. * * Usage: * ```typescript * const routes = createAgentRoutes({ sessionFactory }); * app.route('/agent', routes); // mount on existing app * export default routes; // or use standalone (CF Workers) * ``` */ declare function createAgentRoutes(options: IAgentRoutesOptions): Hono; //#endregion //#region src/http-transport.d.ts interface IHttpTransportOptions { /** Optional: base path prefix for routes. */ basePath?: string; } declare function createHttpTransport(options?: IHttpTransportOptions): ITransportAdapter & { getApp(): Hono; }; //#endregion export { type IAgentRoutesOptions, type IHttpTransportOptions, type TSessionFactory, createAgentRoutes, createHttpTransport }; //# sourceMappingURL=index.d.ts.map