import type { PluginInput } from "@opencode-ai/plugin"; import type { PendingTaskRef } from "./types"; export declare function createToolExecuteBeforeHandler(input: { ctx: PluginInput; pendingFilePaths: Map; pendingTaskRefs: Map; pendingPlanSnapshots?: Map; trackFileCall?: (callID: string, sessionID: string | undefined, filePath: string) => void; trackTaskCall?: (callID: string, sessionID: string | undefined, task: PendingTaskRef) => void; trackPlanSnapshot?: (callID: string, snapshot: string) => void; isCallerOrchestrator?: (sessionID: string | undefined) => Promise; }): (toolInput: { tool: string; sessionID?: string; callID?: string; }, toolOutput: { args: Record; message?: string; }) => Promise;