import type { ToolCallRecord } from "./types.js"; /** Base error for all agent-related errors. */ export declare class AgentError extends Error { readonly cause?: unknown | undefined; constructor(message: string, cause?: unknown | undefined); } /** Thrown when the agent hits the iteration limit without completing. */ export declare class MaxIterationsError extends AgentError { readonly iterations: number; readonly lastOutput: unknown; readonly toolCalls: ToolCallRecord[]; constructor(iterations: number, lastOutput: unknown, toolCalls: ToolCallRecord[]); } /** Thrown when the agent run is aborted via AbortSignal. */ export declare class AbortError extends AgentError { constructor(); }