import { type ToolCallRecord } from './call-recorder'; import type { ToolCallContext, ToolSpec } from './types'; export interface RegisteredToolRun { spec: ToolSpec; /** The category it was offered from, as the record names it. */ category: string; args: Record; /** What the builder is handed. */ context: any; /** What the recorders are handed; the builder's context when absent. */ recordContext?: ToolCallContext; /** Each call's digest as the recorders get it - an unattended run lists the reads its draft rested on. */ onToolCall?: (record: ToolCallRecord) => void; } export declare function runRegisteredTool({ spec, category, args, context, recordContext, onToolCall }: RegisteredToolRun): Promise;