import { ObjectLike } from './internals/types.js'; import './internals/helpers/guards.js'; /** * Copyright 2025 © BeeAI a Series of LF Projects, LLC * SPDX-License-Identifier: Apache-2.0 */ interface FrameworkErrorOptions { isFatal?: boolean; isRetryable?: boolean; context?: ObjectLike; } declare class FrameworkError extends AggregateError { isFatal: boolean; isRetryable: boolean; context: Record; constructor(message?: string, errors?: Error[], options?: FrameworkErrorOptions); hasFatalError(): boolean; traverseErrors(): Generator; getCause(): Error; explain(): string; dump(): string; static ensure(error: Error): FrameworkError; static isInstanceOf(error: unknown): error is FrameworkError; static isAbortError(error: unknown): boolean; static isRetryable(error: unknown): boolean; } declare class NotImplementedError extends FrameworkError { constructor(message?: string, errors?: Error[]); } declare class ValueError extends FrameworkError { constructor(message?: string, errors?: Error[], options?: FrameworkErrorOptions); } declare class AbortError extends FrameworkError { constructor(message?: string, errors?: Error[], options?: FrameworkErrorOptions); } export { AbortError, FrameworkError, type FrameworkErrorOptions, NotImplementedError, ValueError };