import type { Tool } from "@modelcontextprotocol/server"; import type { ToolContext, ToolResult } from '../types.js'; import type { RiskLevel } from '../core/tool-registry.js'; export interface SessionState { current_task: string; epic?: string; feature?: string; files_modified?: string[]; decisions?: string[]; open_questions?: string[]; } export declare function formatSessionState(state: SessionState): string; export declare function buildStateBlock(epic: string, feature: string, task: string): string; export declare function getToolDefinitions(): Tool[]; /** * scene_snapshot 生成的 GDScript 脚本。提取为函数便于单元测试 _root 判空守卫(CRITICAL 防回归)。 * 行为与原内联 snapScript 等价(内容整体移入)。 */ export declare function genSceneSnapshotScript(safePath: string, maxDepth: number): string; export declare function handleTool(name: string, args: Record, ctx: ToolContext): Promise; interface DslCommand { method: string; params: Record; } export declare function parseE2eDsl(line: string): DslCommand | null; export declare function validateScreenshotAssertion(assertion: Record): { valid: boolean; error?: string; }; export declare const TOOL_META: Record; }>; export {};