import { type FetchHandler } from "../fetch-app.js"; import type { EmbeddedViewAssets, ViewManifestEntry } from "./types.js"; /** * Fetch handler for built view bundles under * `${basePath}/_mcp-use/views//…`. * * Production only — dev serves view modules through Vite middleware. * * @param basePath - MCP mount prefix (e.g. `/mcp`). * @param views - Primed view registry; empty skips mounting. * @param options - `projectRoot` defaults to `process.cwd()`. * * @internal */ export declare function createViewAssetsHandler(basePath: string, views: ReadonlyMap, options?: { projectRoot?: string; deferCors?: boolean; assets?: EmbeddedViewAssets; }): FetchHandler | undefined; /** * Fetch handler for the built landing-page hydration bundle under * `${basePath}/_mcp-use/landing/…`, sharing the view bundle code path. * * Production only — dev serves the landing entry through Vite middleware. * * @param basePath - MCP mount prefix (e.g. `/mcp`). * @param options - `projectRoot` defaults to `process.cwd()`. * * @internal */ export declare function createLandingAssetsHandler(basePath: string, options?: { projectRoot?: string; deferCors?: boolean; }): FetchHandler; /** * Fetch handler for public view assets under `${basePath}/_mcp-use/public/`. * * Public responses include `Access-Control-Allow-Origin: *` for * cross-origin sandboxed view iframes. * * Node filesystem modules load only on the first public-asset request so the * library entry stays edge-safe for `server.fetch` deployments. * * @param basePath - MCP mount prefix (e.g. `/mcp`). * @param views - Primed view registry; empty skips mounting. * @param options - When `dev` is true, the public route reads from * `/public` instead of `.mcp-use/build/views/public/`. * `projectRoot` defaults to `process.cwd()`. `enabled` mounts the shared * public route for local server branding even when no views are registered. * * @internal */ export declare function createViewPublicHandler(basePath: string, views: ReadonlyMap, options?: { dev?: boolean; projectRoot?: string; deferCors?: boolean; enabled?: boolean; assets?: EmbeddedViewAssets; }): FetchHandler | undefined;