import type { CorsOptions } from "../config.js"; import type { FetchMiddleware } from "../fetch-app.js"; /** * Fetch middleware that adds CORS headers to every response. * * @internal Wired from {@link MCPServer} when `ServerConfig.cors` is set. */ export declare function corsFetchMiddleware(options: CorsOptions): FetchMiddleware; /** Whether global CORS middleware owns response headers for view assets. */ export declare function isGlobalCorsEnabled(cors: CorsOptions | undefined): boolean;