import type { Tool } from "@modelcontextprotocol/server"; import type { ToolContext, ToolResult } from '../types.js'; /** * touch_drag 事件字段契约(F2 双侧契约:三端字段名必须对齐,防 IMP-11 同类静默错)。 * 对应:recording.test.js 用例 D / Task 4 双侧契约测试。 * position 在 events 端是 [x,y],发 bridge 时拆成 x/y 字段。 */ export declare const TOUCH_DRAG_FIELDS: readonly ["position", "index", "relative", "speed"]; export declare function sanitizeRecordingFileName(name: string): string; export declare function generateRecordingFileName(): string; export declare function validateEventsJson(eventsJson: string): { version: number; duration_ms: number; events: unknown[]; }; export declare const MAX_RECORDING_EVENTS = 10000; export declare function genRecordingSaveScript(fileName: string, eventsJsonEscaped: string): string; export declare function genRecordingLoadScript(fileName: string): string; export declare function getToolDefinitions(): Tool[]; export declare function handleTool(name: string, args: Record, ctx: ToolContext): Promise; export declare const TOOL_META: Record; /** 供 runtime 模块合并调用(v0.18.0 action 路由统一) */ export declare function handleRecordingAction(action: string, args: Record, ctx: ToolContext): Promise;