export interface EscalateResult { __escalate: true; reason: string; } export declare function isEscalateResult(result: unknown): result is EscalateResult; export interface RecoverResult { __recover: true; reason?: string; } export declare function isRecoverResult(result: unknown): result is RecoverResult; /** Standard tool-result shape when `ctx.tool` fails in a model-initiated call. */ export declare function toolErrorResult(error: unknown): { error: true; message: string; }; export interface ToolDeniedResult { __denied: true; toolName: string; deniedBy?: string; message: string; } /** * What the model sees when a human declines a `needsApproval` tool it asked to run. * * A result rather than an error, so the agent can tell the user the request was declined * instead of the turn dying. `__denied` (not `error: true`) keeps it distinguishable from a * genuine failure — nothing malfunctioned. */ export declare function toolDeniedResult(toolName: string, deniedBy?: string, reason?: string): ToolDeniedResult;