import { StandardSchemaWithJSON } from "@modelcontextprotocol/server"; //#region src/guidance.d.ts declare const DEFAULT_PLAIN_WORD_TOOLS: ReadonlySet; interface ToolReferenceRule { /** Target canonical tool name, or `""` when retired/external with no in-band tool. */ readonly tool?: string; /** Neutral capability phrase substituted when `tool` is not mounted on this connection. */ readonly unavailable: string; } interface GuidanceVocabularyOptions { /** Known canonical tool names across the server catalog. */ readonly tools: readonly string[]; /** Explicit redirects or custom absence phrases keyed by canonical/retired tool name. */ readonly references?: Readonly>; /** Multi-tool authored phrases collapsed before single-token matching (prevents `"x or x"`). */ readonly compoundReferences?: Readonly>; /** Tool names that are also common English words (matched only in call/use syntax). */ readonly plainWordTools?: readonly string[]; /** Custom fallback phrase generator. Defaults to `${name.replaceAll("_", " ")} (unavailable on this connection)`. */ readonly defaultUnavailable?: (toolName: string) => string; } interface ToolGuidanceVocabulary { readonly knownTools: ReadonlySet; readonly plainWordTools: ReadonlySet; rewrite(text: string, mounted: ReadonlySet, aliases?: ReadonlyMap): string; } declare function defineToolVocabulary(options: GuidanceVocabularyOptions): ToolGuidanceVocabulary; declare function scopedGuidance(text: string, vocabulary: ToolGuidanceVocabulary, mounted: ReadonlySet, aliases?: ReadonlyMap): string; declare function rewriteSchemaDescriptions(node: unknown, describe: (text: string) => string, inSchemaMap?: boolean): unknown; /** * Transform `description` strings across a Standard Schema's advertised JSON * Schema while preserving its native `validate` runtime and TypeScript types. */ declare function mapInputSchemaDescriptions(schema: Schema, describe: (text: string) => string): Schema; declare function mapInputSchemaDescriptions(schema: Schema, describe: (text: string) => string): Schema; declare function scopedInputSchema(schema: Schema, vocabulary: ToolGuidanceVocabulary, mounted: ReadonlySet, aliases?: ReadonlyMap): Schema; declare function scopedInputSchema(schema: Schema, vocabulary: ToolGuidanceVocabulary, mounted: ReadonlySet, aliases?: ReadonlyMap): Schema; //#endregion export { DEFAULT_PLAIN_WORD_TOOLS, GuidanceVocabularyOptions, ToolGuidanceVocabulary, ToolReferenceRule, defineToolVocabulary, mapInputSchemaDescriptions, rewriteSchemaDescriptions, scopedGuidance, scopedInputSchema }; //# sourceMappingURL=guidance.d.ts.map