import { Hono } from "hono"; /** Options accepted by {@link useCreateApp}. */ export interface HonoAppOptions { /** * Allowed CORS origins. Defaults to the `CORS_ORIGINS` env variable * (comma-separated) or `http://localhost:3000`. */ corsOrigins?: string[]; /** Registers `GET /health` (default `true`). */ health?: boolean; } /** * Creates a Hono app pre-configured for KatanaKit services. * * The factory is runtime-agnostic — the same app runs on Node * (`@hono/node-server`), Bun (`Bun.serve`), Deno and Cloudflare Workers * (`export default app`). It mounts `secureHeaders()`, CORS from the same * `CORS_ORIGINS` convention as the Express adapter, an optional `/health` * probe and JSON error bodies in the toolkit's `{ ok, data, error }` shape. * * @param options - CORS origins and health-check toggle. * @returns A configured Hono application, ready to mount routes on. * * @example * ```ts * import { useCreateApp, useRequireCapability, useSafeJson } from "katanakit-js/adapters/hono"; * import { useGetApi } from "katanakit-js"; * * const app = useCreateApp(); * * app.get("/pokemon/:id", async (c) => { * const result = await useGetApi("pokeapi", "pokemonById", { * params: { id: c.req.param("id") }, * }); * return useSafeJson(c, result); * }); * * export default app; // Cloudflare Workers / Deno * ``` */ export declare function useCreateApp(options?: HonoAppOptions): Hono; //# sourceMappingURL=app.d.ts.map