import { Hono } from 'hono'; import { W as WorkbenchCore } from './workbench-WdZriyFZ.js'; import 'bullmq'; /** * Create API routes for Workbench as a Hono app. * * Iterates the framework-agnostic `buildRouteTable(core)` and registers * each route on a fresh Hono instance. Adapters that don't speak Hono can * use `buildRouteTable` directly — see `@getworkbench/express` and * `@getworkbench/fastify`. */ declare function createApiRoutes(core: WorkbenchCore): Hono; /** * Build an API-only Hono app for Workbench: `/api/*` and `/config`, with CORS * on `/api/*` and optional basic-auth. Does **not** serve `index.html`, * `/assets/:file`, or any static UI. * * Used by the Tauri desktop sidecar, which hosts the dashboard UI from the * Tauri webview directly and only needs the JSON API on a loopback port. * * Adapter consumers (`@getworkbench/hono`, `@getworkbench/elysia`, etc.) * continue to use {@link buildWorkbenchApp} which also serves the bundled UI. */ declare function buildWorkbenchApiApp(core: WorkbenchCore): Hono; /** * Build a fully-wired Hono app for Workbench: * * - `POST /api/*`, `GET /api/*` etc. — JSON API * - `GET /config` — UI bootstrap config * - `GET /assets/:file` — static asset reader * - `GET *` — `index.html` with `` * - CORS on `/api/*` * - Basic auth on everything when `core.requiresAuth()` is true * * Used directly by `@getworkbench/hono` (returned as-is for `.route()` * mounting) and indirectly by `createFetchHandler` for non-Hono adapters. */ declare function buildWorkbenchApp(core: WorkbenchCore): Hono; export { buildWorkbenchApiApp, buildWorkbenchApp, createApiRoutes };