import type { RetryConfig, RetryState, RetryReason, CategorizedError, RetryDecision, RetryContext } from "../types/retry"; import { ErrorCategory } from "../types/retry"; export declare class RetryManager { private config; private state; constructor(config?: Partial); private createInitialState; categorizeError(error: Error, reason?: RetryReason): CategorizedError; private classifyError; private determineCategory; private inferReason; shouldRetry(error: Error, reason?: RetryReason): RetryDecision; recordRetry(categorizedError: CategorizedError, decision: RetryDecision): Promise; execute(fn: () => Promise, onRetry?: (context: RetryContext) => void): Promise; getState(): RetryState; reset(): void; hasReachedLimit(): boolean; getTotalRetries(): number; getmodelRetryCount(): number; private mapErrorTypeDelays; } export declare function createRetryManager(config?: Partial): RetryManager; export declare function isRetryableError(error: Error): boolean; export declare function getErrorCategory(error: Error): ErrorCategory; //# sourceMappingURL=retry.d.ts.map