import type { OpenCodeContext } from "../../types/plugin"; import type { ToolDefinition } from "@opencode-ai/plugin"; type JsonRecord = Record; export declare function callLspClient(client: OpenCodeContext["client"], toolName: string, directMethodName: string, args: JsonRecord): Promise; /** * Store the OpenCode client during plugin setup so tools that cannot * access it via the tool execution context can fall back to it. */ export declare function initLspClientContext(ctx: OpenCodeContext): void; export declare function resetLspClientContext(): void; export declare function getClientFromToolContext(context: Parameters[1]): OpenCodeContext["client"]; export declare function formatLspResult(result: unknown): string; export {};