/** * @name completions * @description MCP autocompletion support for tool arguments. Provides completion callbacks * for common SAP MCP tool parameters (domains, custody names, agent pubkeys, runtime IDs) * using the SDK's `completable()` API. * * @module tools/completions */ import { z } from 'zod'; /** * @name domainCompleter * @description Autocomplete .sol domain names. Returns common TLDs and suggestions * based on partial input. */ export declare function domainCompleter(value: string): string[]; /** * @name runtimeCompleter * @description Autocomplete MCP runtime IDs (codex, claude, hermes, openclaw). */ export declare function runtimeCompleter(value: string): string[]; /** * @name custodyCompleter * @description Autocomplete Adrena custody/ pool names from common Solana SPL tokens. */ export declare function custodyCompleter(value: string): string[]; /** * @name profileCompleter * @description Autocomplete SAP MCP profile names. Profiles are alphanumeric with dashes. */ export declare function profileCompleter(value: string): string[]; /** * @name commitmentCompleter * @description Autocomplete Solana commitment levels. */ export declare function commitmentCompleter(value: string): string[]; /** * @name completableDomain * @description A Zod string schema with domain autocompletion attached. */ export declare const completableDomain: import("@modelcontextprotocol/sdk/server/completable").CompletableSchema; /** * @name completableRuntime * @description A Zod string schema with runtime ID autocompletion attached. */ export declare const completableRuntime: import("@modelcontextprotocol/sdk/server/completable").CompletableSchema; /** * @name completableCustody * @description A Zod string schema with custody name autocompletion attached. */ export declare const completableCustody: import("@modelcontextprotocol/sdk/server/completable").CompletableSchema; /** * @name completableProfile * @description A Zod string schema with profile name autocompletion attached. */ export declare const completableProfile: import("@modelcontextprotocol/sdk/server/completable").CompletableSchema; /** * @name completableCommitment * @description A Zod string schema with commitment level autocompletion attached. */ export declare const completableCommitment: import("@modelcontextprotocol/sdk/server/completable").CompletableSchema; /** * @name CompletionProvider * @description Central registry for MCP completion callbacks. Maps tool names to * parameter completion functions so the MCP adapter can wire them at registration time. */ export declare class CompletionProvider { private static readonly registry; /** * @name register * @description Register a completion callback for a specific tool parameter. */ static register(toolName: string, paramName: string, callback: (value: string, context?: { arguments?: Record; }) => string[] | Promise): void; /** * @name getCompletions * @description Get completion suggestions for a tool parameter given partial input. */ static getCompletions(toolName: string, paramName: string, value: string, context?: { arguments?: Record; }): string[] | Promise; /** * @name hasCompletions * @description Check if a tool has any registered completion callbacks. */ static hasCompletions(toolName: string): boolean; /** * @name registerDefaults * @description Register default completions for common SAP MCP tool parameters. * Call this once during server startup before tool registration. */ static registerDefaults(): void; } //# sourceMappingURL=completions.d.ts.map