import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; /** Per-process injection point for tests. Production binds httpPost to global fetch. */ export interface TuiToolDeps { channel: string | null; sessionId: string | null; threadId: string | null; webhookBaseUrl: string; httpPost: (url: string, body: any) => Promise<{ status: number; body: any; }>; } /** Shape of an MCP CallToolResult — kept structural to avoid importing SDK types into test files. */ export interface CallToolResultShape { content: Array<{ type: 'text'; text: string; }>; isError?: boolean; } export declare function runPlanEnter(args: { reasoning?: string; }): CallToolResultShape; export declare function runPlanExit(args: { plan_file_path: string; summary?: string; }, deps: TuiToolDeps): Promise; export declare function registerTuiPlanTools(server: McpServer, deps: TuiToolDeps): void;