import type { MetaObject } from "@metaobjectsdev/metadata"; import { type GeneratorFactory } from "../generator.js"; export interface RoutesFileHonoOpts { filter?: (entity: MetaObject) => boolean; target?: string; } /** * Hono variant of routesFile() — emits `.routes.hono.ts` mounting * the same five CRUD verbs (GET list / GET :id / POST / PATCH+PUT / DELETE) * against `@metaobjectsdev/runtime-ts/hono` rather than `…/drizzle-fastify`. * * Same cross-port wire contract (envelope shape, status codes, filter + * sort + withCount semantics) as the Fastify flavor. Workers / Bun / Node * consumers running Hono can replace hand-written route registration with * this generator output one entity at a time. * * Per-entity opt-out via `@emitRoutes: false` is honored. If the user * supplies their own filter, both must pass (AND). * * #248 R2: an object with no declared/inherited source.rdb (of ANY kind) isn't * backed by any store — gated by `hasAnyRdbSource` (does NOT add TPH handling; * that gap is pre-existing and out of scope here). */ export declare const routesFileHono: GeneratorFactory; //# sourceMappingURL=routes-file-hono.d.ts.map