import { FrameworkError } from '../../errors.js'; import { Serializable } from '../serializable.js'; import '../types.js'; import './guards.js'; /** * Copyright 2025 © BeeAI a Series of LF Projects, LLC * SPDX-License-Identifier: Apache-2.0 */ declare class RetryCounter extends Serializable { protected ErrorClass: typeof FrameworkError; remaining: number; protected readonly maxRetries: number; protected lastError?: Error; protected finalError?: Error; constructor(maxRetries: number | undefined, ErrorClass: typeof FrameworkError); use(error?: Error): void; createSnapshot(): { remaining: number; maxRetries: number; lastError: Error | undefined; finalError: Error | undefined; ErrorClass: typeof FrameworkError; }; loadSnapshot(snapshot: ReturnType): void; } export { RetryCounter };