import { Hono } from "hono"; /** * Configuration for serving a Single Page Application */ export interface ServeSPAConfig { /** * Absolute path to the frontend build directory * @example path.join(__dirname, "../../frontend/dist") */ frontendPath: string; /** * Base path for API routes (default: "/api") * Requests to this path will be passed through to API handlers */ apiBasePath?: string; /** * Additional paths to exclude from SPA handling * These paths will be passed through to other handlers * @example ["/health", "/ws", "/metrics"] */ excludePaths?: string[]; /** * Index file to serve for SPA routes (default: "index.html") */ indexFile?: string; } /** * Serve a Single Page Application from an Hono app. * * @internal Not part of the stable public API. Exported only because the * official app template (`packages/cli/templates/template/backend/src/index.ts` * and `app/backend/src/index.ts`) calls it to serve the built frontend in * production. Its request-handling behavior is an implementation detail and * may change without a major version bump. */ export declare function serveSPA(app: Hono, config: ServeSPAConfig): void;