/** * Copyright 2025 © BeeAI a Series of LF Projects, LLC * SPDX-License-Identifier: Apache-2.0 */ interface Meta { attempt: number; remaining: number; } interface Options { signal?: AbortSignal; factor?: number; retries?: number; shouldRetry?: (e: Error, meta: Meta) => boolean | Promise; onFailedAttempt?: (e: Error, meta: Meta) => void | Promise; } declare function pRetry(fn: (attempt: number) => Promise, options?: Options): Promise; export { pRetry };