import type { RunToolApprovalItem } from './items'; import type { Agent } from './agent'; import type { RunContext } from './runContext'; import type * as protocol from './types/protocol'; export type ApprovalCapableToolCall = RunToolApprovalItem['rawItem']; export type LocalToolCall = protocol.FunctionCallItem | protocol.ComputerUseCallItem | protocol.ShellCallItem | protocol.ApplyPatchCallItem; export declare function getHostedMcpApprovalToolName(toolName: string, toolCall: ApprovalCapableToolCall): string; export declare function getToolInvocationCallId(toolCall: ApprovalCapableToolCall): string | undefined; export declare function getToolInvocationFingerprint(toolName: string, toolCall: ApprovalCapableToolCall): string; export declare function getToolInvocationNameFromFingerprint(fingerprint: string): string | undefined; export declare function validateToolInvocationApproval(context: RunContext, agent: Agent, tool: { name: string; }, toolCall: ApprovalCapableToolCall): { callId: string; fingerprint: string; }; export declare function validateToolInvocationName(context: RunContext, agent: Agent, toolName: string, toolCall: ApprovalCapableToolCall): { callId: string; fingerprint: string; }; export declare function getHandoffToolInvocationName(handoffName: string): string; export declare function validateHandoffToolInvocation(context: RunContext, agent: Agent, handoffName: string, toolCall: protocol.FunctionCallItem): { callId: string; fingerprint: string; }; export declare function getToolInvocationApproval(context: RunContext, agent: Agent, tool: { name: string; }, toolCall: ApprovalCapableToolCall): boolean | undefined; export declare function getToolInvocationRejectionMessage(context: RunContext, agent: Agent, tool: { name: string; }, toolCall: ApprovalCapableToolCall): string | undefined; export declare function getBoundToolInvocationRejectionMessage(context: RunContext, agent: Agent, toolName: string, toolCall: ApprovalCapableToolCall): string | undefined; export declare function getCanonicalToolCaller(toolCall: unknown): protocol.ToolCaller;