import type { PromptMessage } from "@modelcontextprotocol/server"; export type CompletionSource = { type: 'enum'; values: string[]; } | { type: 'scenes'; }; export interface PromptDef { name: string; description: string; arguments?: Array<{ name: string; description: string; required?: boolean; completion?: CompletionSource; }>; } export declare function listPrompts(): PromptDef[]; /** 列出所有已注册 prompt 的定义(name + description + arguments)。供 godot_get_context 的 workflows 字段使用。 */ export declare function listPromptDefs(): PromptDef[]; export declare function getPrompt(name: string, args: Record): Promise<{ messages: PromptMessage[]; }>; /** 按 name 查单个 PromptDef(CompleteRequest handler 用,访问 completion 配置的唯一干净路径) */ export declare function getPromptDef(name: string): PromptDef | undefined; /** * 解析补全源 → values(按 prefix 过滤)。 * enum: 固定枚举;scenes: scanFiles 列 .tscn 归一化 res://。失败/无 projectPath → 空。 */ export declare function resolveCompletion(source: CompletionSource, prefix: string, projectPath?: string): Promise; /** CompleteRequest 逻辑(提取自 GodotServer handler,可单测)。SDK :5511 total=all.length;:5507 MAX=100。 */ export declare function handleCompletion(ref: { type: string; name: string; }, argument: { name: string; value: string; }, projectPath?: string): Promise<{ completion: { values: string[]; total: number; hasMore: boolean; }; }>;