import type { Tool, ToolConfig, ToolExecutionContext } from "../../tool/index.js"; /** Public API contract for hosted child invoke failure. */ export interface HostedChildInvokeFailure { terminalErrorCode: string; terminalErrorMessage: string; } /** Options accepted by create hosted child invoke tool. */ export interface CreateHostedChildInvokeToolOptions { id?: string; inputSchema: ToolConfig["inputSchema"]; additionalDescriptionParts?: readonly string[]; execute: (input: TInput, context?: ToolExecutionContext) => Promise | TResult; buildFailureResult: (failure: HostedChildInvokeFailure) => TResult; decorateResult?: (result: TResult) => TResult; shouldBlockSameTurnRetry?: (result: TResult) => boolean; retryBlockedErrorCode?: string; retryBlockedMessage?: string; starterIntentRootOwnershipErrorCode?: string; starterIntentRootOwnershipMessage?: string; } /** Create hosted child invoke tool. */ export declare function createHostedChildInvokeTool(options: CreateHostedChildInvokeToolOptions): Tool; //# sourceMappingURL=child-invoke-tool.d.ts.map