export declare class ToolNotFoundError extends Error { constructor(message: string); } /** * Plain shape an Error gets reduced to when it crosses the evented engine's * pubsub boundary. `JSON.stringify(error)` returns `{}` since `name`, `message`, * and `stack` live on the prototype, so we capture them explicitly — plus any * extra enumerable own properties (e.g. AssertionError's `actual`/`expected`) — * and reify on the consumer side. */ export type SerializedError = { name: string; message: string; stack?: string; } & Record; export declare function serializeToolError(error: unknown): SerializedError; export declare function deserializeToolError(value: unknown): Error; //# sourceMappingURL=errors.d.ts.map