import type { MantleRuntime } from "../../MantleRuntime.js"; import type { HandlerContext } from "../../domain/model/HandlerContext.js"; import type { RuntimePlan } from "../../domain/service/RuntimePlanCompiler.js"; export declare const MANTLE_VIEW_ROUTE_PREFIX = "/api/views"; export interface MantleRequestHandlerOptions { readonly plan: RuntimePlan; readonly getRuntime: () => Promise; /** Disable when the host accepts credentials outside Cookie/Authorization. */ readonly allowSharedViewCache?: boolean; readonly publicCacheTag?: string; } export type MantleRequestHandler = (request: Request, context?: HandlerContext) => Promise; /** Map the portable public View/HTTP Trigger surface onto Web Requests. */ export declare function createMantleRequestHandler(options: MantleRequestHandlerOptions): MantleRequestHandler; //# sourceMappingURL=createMantleRequestHandler.d.ts.map