import { type EmittedRoute, type RouteSchemaNames } from "typespec-http-zod"; import type { SecurityRequirement } from "./runtime.js"; /** * Where emitted output imports its runtime from: the copy this package writes beside it. * * **Always this module.** `runtime-module` used to replace it, and that made an application own a * copy of generated logic -- see the `runtime-module-removed` diagnostic. * * **Deliberately NOT `./runtime.gen.js`, which is what the sibling server emitter uses.** Both * emitters run `typespec-http-zod`, and a consumer who wants both surfaces may point them at one * output directory. `emitFile` has no duplicate-path detection -- measured, `@typespec/compiler` * 1.15.0 `dist/src/core/emitter-utils.js:19-27` -- so two emitters writing one path is a silent * last-writer-wins whose winner is decided by the ORDER of `emit:` in `tspconfig.yaml`. Measured * end to end: with divergent `seal-object-schemas`, one order produced 19 unsealed objects and the * other 11 unsealed plus 8 sealed, exit 0 and no diagnostic either time. * * Giving this package its own runtime filename means the only file the two can contest is * `schemas.gen.ts`, which is byte-identical under identical options. */ export declare const DEFAULT_RUNTIME_MODULE = "./mcp-runtime.gen.js"; export interface ToolEntry { readonly route: EmittedRoute; readonly names: RouteSchemaNames; readonly toolName: string; readonly requirements: readonly SecurityRequirement[]; readonly description: string | undefined; readonly title: string | undefined; } export interface RenderedTools { readonly text: string; /** Operation ids that became tools. */ readonly emitted: readonly string[]; } export declare function renderTools(entries: readonly ToolEntry[], declaredOperationIds: readonly string[], options: { readonly sealed: boolean; readonly hint: string | undefined; }): RenderedTools;