/** * Adapter-specific error classes. Both subclass `Error` so consumers can * use `err instanceof DarwinNodeError` to distinguish adapter failures * from upstream `darwin-agents` or `@langchain/langgraph` errors. * * Pattern mirrors `mcp-armor` and `darwin-agents@0.4.9` McpBridge*Error * (see `nex_decide 34a506ba` for the upstream pattern). */ export declare class DarwinNodeError extends Error { readonly agentName: string; readonly name = "DarwinNodeError"; constructor(message: string, agentName: string, options?: { cause?: unknown; }); } export declare class DarwinEvolutionHookError extends Error { readonly name = "DarwinEvolutionHookError"; constructor(message: string, options?: { cause?: unknown; }); } /** * Thrown by `createTokenBudgetCallbacks` when a configured per-invocation * token budget is exceeded. The handler attaches the cumulative tokens * counted at the moment of the throw so consumers can log / alert. * * NEW V0.4 (S1235). */ export declare class DarwinTokenBudgetExceededError extends Error { readonly budget: number; readonly totalTokens: number; readonly providerHint: string | undefined; readonly name = "DarwinTokenBudgetExceededError"; constructor(message: string, budget: number, totalTokens: number, providerHint: string | undefined, options?: { cause?: unknown; }); } //# sourceMappingURL=errors.d.ts.map