import type { Agent, FunctionTool, RunResult } from '@openai/agents-core'; export interface AgentAsToolOptions> { toolName: string; toolDescription?: string; customOutputExtractor?: (result: RunResult) => string | Promise; } /** * Nested approval interruptions are not supported: `invoke` throws * `ApplicationFailure` of type `NestedAgentInterruption`. Handle approvals * at the top-level runner instead. */ export declare function agentAsTool>(agent: TAgent, options: AgentAsToolOptions): FunctionTool; export declare function extractToolOutput>(result: RunResult, agentName: string, options: AgentAsToolOptions): Promise;