import type { ToolInfo } from "@earendil-works/pi-coding-agent"; import type { McpExtensionState } from "./state.ts"; import type { ContentBlock } from "./types.ts"; export declare const DEFAULT_MCP_SCRIPT_TIMEOUT_MS = 30000; export declare function runMcpScript(state: McpExtensionState, code: string, timeoutMs?: number, getPiTools?: () => ToolInfo[], signal?: AbortSignal): Promise<{ content: ContentBlock[]; details: { calls?: ({ operation: "call"; path: string; ok: true; durationMs: number; } | { operation: "call"; path: string; ok: false; error: string; durationMs: number; } | { operation: "search"; query: string; ok: true; durationMs: number; } | { operation: "search"; query: string; ok: false; error: string; durationMs: number; } | { operation: "describe"; path: string; ok: true; durationMs: number; } | { operation: "describe"; path: string; ok: false; error: string; durationMs: number; })[]; timeoutMs: number; error?: "aborted" | "timeout" | "script_error"; message?: string | undefined; mode: string; }; }>;