import { type LspRequestContext } from "@oh-my-opencode/lsp-core/request-context"; import type { ToolExecutionResult } from "@oh-my-opencode/lsp-core/tools"; import { type DaemonPaths } from "./paths.js"; export type DaemonToolContext = LspRequestContext; export interface CallToolOptions { context: DaemonToolContext; paths?: DaemonPaths; requestTimeoutMs?: number; signal?: AbortSignal; ensure?: (paths: DaemonPaths, signal?: AbortSignal) => Promise; } export declare function callToolViaDaemon(name: string, args: Record, options: CallToolOptions): Promise; export declare function callDiagnosticsViaDaemon(filePath: string, options: CallToolOptions): Promise; export declare function currentRequestContext(env?: NodeJS.ProcessEnv): DaemonToolContext;