import type { ProviderRunCallbacks } from '../../../lib/providers/types';
import type { OllamaChatMessage, OllamaToolContext, PendingToolCallRecord, PreparedAttachmentTool, PreparedMcpTool } from './types';
export declare const executeToolCall: (call: {
    callId: string;
    toolName: string;
    arguments: string;
}, tool: PreparedMcpTool, callbacks: ProviderRunCallbacks) => Promise<{
    output: string;
    metadata: {
        callId: string;
    };
}>;
export declare const runAttachmentToolCall: (call: {
    callId: string;
    toolName: string;
    arguments: string;
}, tool: PreparedAttachmentTool, callbacks: ProviderRunCallbacks) => Promise<{
    output: string;
    metadata: {
        callId: string;
    };
}>;
export declare const applyRejectedToolCalls: (conversation: OllamaChatMessage[], rejected: PendingToolCallRecord[], callbacks: ProviderRunCallbacks) => Promise<void>;
export declare const applyApprovedToolCalls: (conversation: OllamaChatMessage[], approved: PendingToolCallRecord[], toolContext: OllamaToolContext, callbacks: ProviderRunCallbacks) => Promise<void>;
export declare const buildAssistantToolMessage: (finalOutput: string, toolCalls: Array<{
    callId: string;
    toolName: string;
    arguments: string;
}>) => {
    role: "assistant";
    content: string;
    tool_calls: {
        id: string;
        type: "function";
        function: {
            name: string;
            arguments: unknown;
        };
    }[];
};
//# sourceMappingURL=toolExecution.d.ts.map